改进Query类的lock方法 支持主从

This commit is contained in:
thinkphp
2016-05-31 16:52:20 +08:00
parent ead3cdee85
commit 923c6657ad

View File

@@ -1051,7 +1051,8 @@ class Query
*/
public function lock($lock = false)
{
$this->options['lock'] = $lock;
$this->options['lock'] = $lock;
$this->options['master'] = true;
return $this;
}