改进model类的save方法

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

View File

@@ -943,7 +943,8 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
$this->setAttr($key, $value, $data);
}
if (!empty($where)) {
$this->isUpdate = true;
$this->isUpdate = true;
$this->updateWhere = $where;
}
}