/** * @Route( * path="/{id}/{slug}", * name="blogger_blog_show", * requirements={"id"="\d+"} * ) * @Template */ public function showAction(Blog $blog) { return ['post' => $blog, 'comments' => $blog->getComments()]; }
public function getComments() { $this->__load(); return parent::getComments(); }