From e4bb04c678cfd8986c7de237c415e4f58c0c5e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 11 Sep 2020 17:14:47 +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/BaseActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 3deb2534..af095400 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -387,8 +387,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess $trance->rollback(); $result = $this->addError($this->getLastError()); } else { - $result = static::populate($this->_attributes); $trance->commit(); + $result = $this->refresh(); $this->afterSave($attributes, $param); } return $result;