コード例 #1
0
ファイル: RDB.php プロジェクト: naushrambo/espocrm
 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);
 }
コード例 #2
0
ファイル: RDB.php プロジェクト: jdavis593/appitechture
 protected function afterSave(Entity $entity)
 {
     parent::afterSave($entity);
     $this->getEntityManager()->getHookManager()->process($this->entityName, 'afterSave', $entity);
 }