mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
代码规范
This commit is contained in:
@@ -1046,16 +1046,17 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
if (!$this->validateData($data)) {
|
if (!$this->validateData($data)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 数据对象赋值
|
// 数据对象赋值
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
$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;
|
$this->updateWhere = $where;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 自动关联写入
|
// 自动关联写入
|
||||||
if (!empty($this->relationWrite)) {
|
if (!empty($this->relationWrite)) {
|
||||||
$relation = [];
|
$relation = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user