From 5676b0d7fd61c3f07d188150801b8bf0aecaebbe Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 4 Mar 2021 23:44:56 +0800 Subject: [PATCH] modify --- Database/Base/BaseActiveRecord.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 5ab3d646..9d3fb8b9 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -827,7 +827,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess public function refresh(): static { $this->_oldAttributes = $this->_attributes; - return $this; + $this->setIsCreate(false); + return $this; } /**