This commit is contained in:
2021-02-23 18:31:30 +08:00
parent 4a49c14055
commit 84565336ed
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -495,7 +495,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
return false;
}
if (!$this->event->dispatch(self::BEFORE_SAVE, [$this])) {
if (!$this->event->dispatch(self::BEFORE_SAVE, [$this], $this)) {
return false;
}