From baee6b0081cde67e6b064d55684c4240841ea05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 17:49:10 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 6f03a4c5..4358d53a 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -644,7 +644,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess * @return bool * @throws Exception */ - #[Event(static::AFTER_SAVE)] + #[Event(ActiveRecord::AFTER_SAVE)] public function afterSave($attributes, $changeAttributes): bool { return true; @@ -655,7 +655,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess * @param $model * @return bool */ - #[Event(static::BEFORE_SAVE)] + #[Event(ActiveRecord::BEFORE_SAVE)] public function beforeSave($model): bool { return true;