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;