public function listMostRecentAction($max = 3)
    {
        $questions = $this->getQuestionRepository()->retrieveMostRecent($max);

        return $this->render(
            'GenjFaqBundle:Question:list_most_recent.html.twig',
            array(
                'questions' => $questions,
                'max'       => $max
            )
        );
    }
public function listMostRecentAction($max = 3)
    {
        $questions = $this->getQuestionRepository()->retrieveMostRecent($max);

        return $this->render(
            'GenjFaqBundle:Question:list_most_recent.html.twig',
            array(
                'questions' => $questions,
                'max'       => $max
            )
        );
    }
public function listMostRecentAction ( $ max = 3 ) { $ questions = $ this -> getQuestionRepository ( ) -> retrieveMostRecent ( $ max ) ; return $ this -> render ( 'GenjFaqBundle:Question:list_most_recent.html.twig' , array ( 'questions' => $ questions , 'max' => $ max ) ) ; }
list most recent added questions based on publishAt

@param int $max

@return \Symfony\Component\HttpFoundation\Response
list most recent added questions based on publishAt