コード例 #1
0
ファイル: RDB.php プロジェクト: naushrambo/espocrm
 public function remove(Entity $entity, array $options = array())
 {
     $result = parent::remove($entity, $options);
     if ($result) {
         $this->getEntityManager()->getHookManager()->process($this->entityName, 'afterRemove', $entity, $options);
     }
     return $result;
 }
コード例 #2
0
ファイル: RDB.php プロジェクト: jdavis593/appitechture
 public function remove(Entity $entity)
 {
     $this->getEntityManager()->getHookManager()->process($this->entityName, 'beforeRemove', $entity);
     $result = parent::remove($entity);
     if ($result) {
         $this->getEntityManager()->getHookManager()->process($this->entityName, 'afterRemove', $entity);
     }
     return $result;
 }