This commit is contained in:
2023-04-01 15:56:45 +08:00
parent 9b1489f576
commit c805173600
-3
View File
@@ -171,9 +171,6 @@ class Collection extends AbstractCollection
$array = [];
/** @var Model $value */
foreach ($this as $value) {
if (!is_object($value)) {
continue;
}
$array[] = $value->setWith($this->query->with)->toArray();
}
$this->_item = [];