Example #1
0
 public function concerneTdc(\TRC\CoreBundle\Entity\DDC\TDC $tdc)
 {
     foreach ($this->tdc as $key => $t) {
         if ($t->getId() == $tdc->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();
 }