mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正
This commit is contained in:
@@ -1966,14 +1966,14 @@ class Query
|
|||||||
// 生成模型对象
|
// 生成模型对象
|
||||||
$model = $this->model;
|
$model = $this->model;
|
||||||
foreach ($resultSet as $key => $result) {
|
foreach ($resultSet as $key => $result) {
|
||||||
$result = new $model;
|
$obj = new $model;
|
||||||
// 支持获取器
|
// 支持获取器
|
||||||
$result->data($result, true)->isUpdate(true);
|
$obj->data($result, true)->isUpdate(true);
|
||||||
// 关联查询
|
// 关联查询
|
||||||
if (!empty($options['relation'])) {
|
if (!empty($options['relation'])) {
|
||||||
$result->relationQuery($options['relation']);
|
$result->relationQuery($options['relation']);
|
||||||
}
|
}
|
||||||
$resultSet[$key] = $result;
|
$resultSet[$key] = $obj;
|
||||||
}
|
}
|
||||||
if (!empty($options['with']) && $result instanceof Model) {
|
if (!empty($options['with']) && $result instanceof Model) {
|
||||||
// 预载入
|
// 预载入
|
||||||
|
|||||||
Reference in New Issue
Block a user