Ejemplo n.º 1
0
 public function createAnswer(Petition $petition, User $user, $option)
 {
     $answer = new Answer();
     $answer->setUser($user);
     $answer->setPetition($petition);
     $answer->setOptionId($option);
     return $answer;
 }
 public function setOptionId($optionId)
 {
     $this->__load();
     return parent::setOptionId($optionId);
 }