From e9fc1f81603d7acd0459212989f98470283b2a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 8 Sep 2020 00:56:28 +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 40005ba5..af17326b 100644 --- a/Database/Base/CollectionIterator.php +++ b/Database/Base/CollectionIterator.php @@ -30,7 +30,7 @@ class CollectionIterator extends \ArrayIterator */ public function current() { - return $this->model::populate(parent::current()); + return (clone $this->model)->setAttributes(parent::current()); }