Esempio 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();
 }
Esempio n. 2
0
 public function addReportAnswer(ReportAnswer $l)
 {
     $this->collReportAnswers[] = $l;
     $l->setUser($this);
 }