From 480ba875d0fc7a14d3d145a53b86e301990c09ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 25 Apr 2021 18:09:24 +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/AbstractCollection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Database/Base/AbstractCollection.php b/Database/Base/AbstractCollection.php index 05575d48..33a1a5d5 100644 --- a/Database/Base/AbstractCollection.php +++ b/Database/Base/AbstractCollection.php @@ -116,6 +116,7 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat { if (!is_object($this->model)) { $this->model = $this->model::populate([]); + $this->model->setIsCreate(false); } return $this->model; }