mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进Query类的find方法
This commit is contained in:
@@ -1980,6 +1980,9 @@ class Query
|
||||
$model = $this->model;
|
||||
$data = new $model($data);
|
||||
$data->isUpdate(true, isset($options['where']['AND']) ? $options['where']['AND'] : null);
|
||||
if ($this->allowField) {
|
||||
$data->allowField($this->allowField);
|
||||
}
|
||||
// 关联查询
|
||||
if (!empty($options['relation'])) {
|
||||
$data->relationQuery($options['relation']);
|
||||
|
||||
Reference in New Issue
Block a user