This commit is contained in:
2021-02-23 17:19:46 +08:00
parent 21bdf32fc3
commit 31d5024663
10 changed files with 41 additions and 26 deletions
+1 -4
View File
@@ -50,10 +50,7 @@ class CollectionIterator extends \ArrayIterator
*/
protected function newModel($current): ActiveRecord
{
$object = Snowflake::app()->getObject();
$model = $object->get($this->model, false);
return $model->setAttributes($current);
return objectPool($this->model)->setAttributes($current);
}