This commit is contained in:
2021-02-22 17:49:10 +08:00
parent 832fbb1157
commit baee6b0081
+2 -2
View File
@@ -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;