public function viewAction(Author $author) { $books = $author->getBooks(); return $this->render("BlutchLibraryBundle:Author:view.html.twig", array("author" => $author, "books" => $books)); }