This commit is contained in:
2021-02-23 16:56:34 +08:00
parent 3cef44886d
commit 7ae8d4ffc2
10 changed files with 500 additions and 492 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class CollectionIterator extends \ArrayIterator
protected function newModel($current): ActiveRecord
{
$object = Snowflake::app()->getObject();
$model = $object->getConnection([$this->model], false);
$model = $object->get($this->model, false);
return $model->setAttributes($current);