public function executeReportQuestion() { $this->question = QuestionPeer::retrieveByPk($this->getRequestParameter('id')); $this->forward404Unless($this->question); $spam = new ReportQuestion(); $spam->setQuestionId($this->question->getId()); $spam->setUserId($this->getUser()->getSubscriberId()); $spam->save(); }
public function addReportQuestion(ReportQuestion $l) { $this->collReportQuestions[] = $l; $l->setUser($this); }