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