This commit is contained in:
2020-09-08 01:09:24 +08:00
parent cbf961c4e7
commit 0cbf083621
4 changed files with 9 additions and 46 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ class ActiveQuery extends Component
->createCommand($this->queryBuilder())
->all();
$collect = new Collection();
$collect = new Collection($this);
$collect->setModel($this->modelClass);
$collect->setItems($data);
if ($this->asArray) {