コード例 #1
0
ファイル: actions.class.php プロジェクト: emacsattic/symfony
 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();
 }
コード例 #2
0
ファイル: BaseUser.php プロジェクト: emacsattic/symfony
 public function addReportAnswer(ReportAnswer $l)
 {
     $this->collReportAnswers[] = $l;
     $l->setUser($this);
 }