mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进关联对象赋值
This commit is contained in:
@@ -294,6 +294,9 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
}
|
}
|
||||||
// 避免影响其它操作方法
|
// 避免影响其它操作方法
|
||||||
$this->relation = [];
|
$this->relation = [];
|
||||||
|
// 保存关联对象值
|
||||||
|
$this->data[$name] = $result;
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user