public function viewAction(BookGenre $bookGenre) { $translator = $this->get('translator'); $books = $bookGenre->getBooks(); return $this->render("BlutchLibraryBundle:BookGenre:view.html.twig", array("bookGenre" => $bookGenre, "books" => $books)); }