mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Model类支持 按照查询条件 更新
This commit is contained in:
@@ -1337,7 +1337,7 @@ class Query
|
||||
if (!empty($options['model'])) {
|
||||
// 返回模型对象
|
||||
$data = new $options['model']($data);
|
||||
$data->isUpdate(true);
|
||||
$data->isUpdate(true, $options['where']['AND']);
|
||||
// 关联查询
|
||||
if (!empty($options['relation'])) {
|
||||
$data->relationQuery($options['relation']);
|
||||
|
||||
Reference in New Issue
Block a user