mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
Merge branch 'master' of https://github.com/top-think/framework
This commit is contained in:
@@ -1028,7 +1028,6 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
$data = [];
|
||||
}
|
||||
|
||||
if (!empty($data)) {
|
||||
// 数据自动验证
|
||||
if (!$this->validateData($data)) {
|
||||
return false;
|
||||
@@ -1041,7 +1040,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
$this->isUpdate = true;
|
||||
$this->updateWhere = $where;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 自动关联写入
|
||||
if (!empty($this->relationWrite)) {
|
||||
|
||||
Reference in New Issue
Block a user