This commit is contained in:
2023-04-17 10:59:27 +08:00
parent 2486bfd4d1
commit e2c6c2ae46
+1 -1
View File
@@ -171,7 +171,7 @@ class Collection extends AbstractCollection
$array = [];
/** @var Model $value */
foreach ($this as $value) {
$array[] = $value->setWith($this->query->with)->toArray();
$array[] = $value->toArray();
}
$this->_item = [];
return $array;