preRemove() public méthode

public preRemove ( Doctrine\Common\EventArgs $args )
$args Doctrine\Common\EventArgs
 /**
  * @param EventArgs $args
  */
 public function preRemove(EventArgs $args)
 {
     parent::preRemove($args);
     if (method_exists($args->getEntity(), 'isDeletable')) {
         if ($args->getEntity()->isDeletable() == 0) {
             //find a solution... like throwing super Exception thingy
         }
     }
 }