/**
* @Method("GET")
* @Route("books/{id}", name="book_detail")
*/
public function getAction(Book $book)
{
$comments = $this->getRepository("AppBundle:BookComment")->getCommentsForBook($book->getId());
return $this->render('book/detail.html.twig', ['book' => $book, 'comments' => $comments]);
}