Ejemplo n.º 1
0
 public function executeShow()
 {
     $this->question = QuestionPeer::retrieveByPk($this->getRequestParameter('id'));
     $c = new Criteria();
     $c->add(SolutionPeer::QUESTION_ID, $this->question->getId());
     $c->addDescendingOrderByColumn(SolutionPeer::CREATED_AT);
     $this->solutions = SolutionPeer::doSelect($c);
     $this->forward404Unless($this->question);
 }