Ejemplo n.º 1
0
 protected function beforeSave(Entity $entity, array $options = array())
 {
     parent::beforeSave($entity, $options);
     $this->getEntityManager()->getHookManager()->process($this->entityName, 'beforeSave', $entity, $options);
 }
Ejemplo n.º 2
0
 protected function beforeSave(Entity $entity)
 {
     parent::beforeSave($entity);
     $this->getEntityManager()->getHookManager()->process($this->entityName, 'beforeSave', $entity);
 }