public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) $this->_identifier["id"];
     }
     $this->__load();
     return parent::getId();
 }
Example #2
0
 /**
  * Set option
  *
  * @param  \Civix\CoreBundle\Entity\Poll\Option $option
  * @return Answer
  */
 public function setOption(\Civix\CoreBundle\Entity\Poll\Option $option = null)
 {
     $this->option = $option;
     $this->optionId = $option->getId();
     return $this;
 }