Ejemplo n.º 1
0
 public function aPoste(\TRC\CoreBundle\Entity\DDC\MEDP $medp, \TRC\UserBundle\Entity\User $user)
 {
     $utilisateur = $this->getParentActeur($medp->getFonction()->getActeur());
     if ($utilisateur->getCompte()->getId() == $user->getId()) {
         return true;
     }
     return false;
 }
 /**
  * {@inheritDoc}
  */
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) parent::getId();
     }
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
     return parent::getId();
 }