Ejemplo n.º 1
0
 public function executeReportAnswer()
 {
     $this->answer = AnswerPeer::retrieveByPk($this->getRequestParameter('id'));
     $this->forward404Unless($this->answer);
     $spam = new ReportAnswer();
     $spam->setAnswerId($this->answer->getId());
     $spam->setUserId($this->getUser()->getSubscriberId());
     $spam->save();
 }
Ejemplo n.º 2
0
 public function addReportAnswer(ReportAnswer $l)
 {
     $this->collReportAnswers[] = $l;
     $l->setUser($this);
 }