public function listByQueryAction($query, $max = 30, $whereFields = array('headline', 'body'))
    {
        $questions = $this->getQuestionRepository()->retrieveByQuery($query, $max, $whereFields);

        return $this->render(
            'GenjFaqBundle:Question:list_by_query.html.twig',
            array(
                'questions' => $questions,
                'max'       => $max
            )
        );
    }
public function listByQueryAction($query, $max = 30, $whereFields = array('headline', 'body'))
    {
        $questions = $this->getQuestionRepository()->retrieveByQuery($query, $max, $whereFields);

        return $this->render(
            'GenjFaqBundle:Question:list_by_query.html.twig',
            array(
                'questions' => $questions,
                'max'       => $max
            )
        );
    }
public function listByQueryAction ( $ query , $ max = 30 , $ whereFields = array ( 'headline' , 'body' ) ) { $ questions = $ this -> getQuestionRepository ( ) -> retrieveByQuery ( $ query , $ max , $ whereFields ) ; return $ this -> render ( 'GenjFaqBundle:Question:list_by_query.html.twig' , array ( 'questions' => $ questions , 'max' => $ max ) ) ; }
list questions which fitting the query

@param string $query
@param int    $max
@param array  $whereFields

@return \Symfony\Component\HttpFoundation\Response
list questions which fitting the query