Example #1
0
 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();
 }
Example #2
0
 public function addReportQuestion(ReportQuestion $l)
 {
     $this->collReportQuestions[] = $l;
     $l->setUser($this);
 }