protected function afterSave(Entity $entity, array $options = array()) { if (!empty($this->restoreData)) { $entity->set($this->restoreData); $this->restoreData = null; } parent::afterSave($entity, $options); $this->handleEmailAddressSave($entity); $this->handlePhoneNumberSave($entity); $this->handleSpecifiedRelations($entity); $this->getEntityManager()->getHookManager()->process($this->entityName, 'afterSave', $entity, $options); }
protected function afterSave(Entity $entity) { parent::afterSave($entity); $this->getEntityManager()->getHookManager()->process($this->entityName, 'afterSave', $entity); }