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