This commit is contained in:
2021-11-11 03:10:01 +08:00
parent 8c3d3b2ce0
commit 229c0fa523
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ use Exception;
class CollectionIterator extends \ArrayIterator
{
private ModelInterface|string $model;
private \Database\Model|string $model;
/** @var ActiveQuery */
@@ -56,7 +56,7 @@ class CollectionIterator extends \ArrayIterator
*/
protected function newModel($current): ModelInterface
{
return $this->model->setAttributes($current);
return $this->model::populate($current);
}