mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
改进Model类的save方法
This commit is contained in:
@@ -616,6 +616,8 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
}
|
||||
// 标记为更新
|
||||
$this->isUpdate = true;
|
||||
// 清空change
|
||||
$this->change = [];
|
||||
// 新增回调
|
||||
$this->trigger('after_insert', $this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user