From b3ee1fc3bfa7459bb0a103ac95c00e01e2cfc8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 16 Mar 2021 10:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Base/CollectionIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Base/CollectionIterator.php b/Database/Base/CollectionIterator.php index 412ea690..3ba47aaa 100644 --- a/Database/Base/CollectionIterator.php +++ b/Database/Base/CollectionIterator.php @@ -58,7 +58,7 @@ class CollectionIterator extends \ArrayIterator { $model = $this->model; if (is_object($model)) { - return $model->setAttributes($current); + $model = get_class($model); } return objectPool($model, function () use ($model) { return new $model();