改进model类的save方法

This commit is contained in:
thinkphp
2017-08-28 11:30:15 +08:00
parent e2c7ba29e3
commit 6e75d3c6c7

View File

@@ -944,6 +944,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
} }
if (!empty($where)) { if (!empty($where)) {
$this->isUpdate = true; $this->isUpdate = true;
$this->updateWhere = $where;
} }
} }