mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
改进model类的save方法
This commit is contained in:
@@ -943,7 +943,8 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
$this->setAttr($key, $value, $data);
|
$this->setAttr($key, $value, $data);
|
||||||
}
|
}
|
||||||
if (!empty($where)) {
|
if (!empty($where)) {
|
||||||
$this->isUpdate = true;
|
$this->isUpdate = true;
|
||||||
|
$this->updateWhere = $where;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user