/**
  * {@inheritDoc}
  */
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) parent::getId();
     }
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', array());
     return parent::getId();
 }
Exemple #2
0
 /**
  * Set date
  *
  * @param \DateTime $date
  *
  * @return article
  */
 public function setCategoryId(\CategoryBundle\Entity\category $category = null)
 {
     $this->category_id = $category->getId();
     return $this;
 }