Пример #1
0
 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
 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;
 }