This commit is contained in:
2021-03-05 18:34:53 +08:00
parent be51917c38
commit f6070a92f9
+1 -1
View File
@@ -72,7 +72,7 @@ class CollectionIterator extends \ArrayIterator
*/ */
public function current(): ActiveRecord public function current(): ActiveRecord
{ {
if (!(($current = parent::current()) instanceof ActiveRecord)) { if (is_array($current = parent::current())) {
$current = $this->newModel($current); $current = $this->newModel($current);
} }
return $this->query->getWith($current); return $this->query->getWith($current);