dispatchEvent(TheliaEvents::BEFORE_CREATEAREA, new AreaEvent($this)); return true; } public function postInsert(ConnectionInterface $con = null) { parent::postInsert($con); $this->dispatchEvent(TheliaEvents::AFTER_CREATEAREA, new AreaEvent($this)); } public function preUpdate(ConnectionInterface $con = null) { parent::preUpdate($con); $this->dispatchEvent(TheliaEvents::BEFORE_UPDATEAREA, new AreaEvent($this)); return true; } public function postUpdate(ConnectionInterface $con = null) { parent::postUpdate($con); $this->dispatchEvent(TheliaEvents::AFTER_UPDATEAREA, new AreaEvent($this)); } public function preDelete(ConnectionInterface $con = null) { parent::preDelete($con); $this->dispatchEvent(TheliaEvents::BEFORE_DELETEAREA, new AreaEvent($this)); return true; } public function postDelete(ConnectionInterface $con = null) { parent::postDelete($con); $this->dispatchEvent(TheliaEvents::AFTER_DELETEAREA, new AreaEvent($this)); } }