/** * {@inheritDoc} */ public function getComments() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getComments', array()); return parent::getComments(); }
/** * @Route("/event/comments/{id}", name="admin_event_comments_view", requirements={"id" = "\d+"}) * @Template() * @ParamConverter("Event", class="ConnectionEventBundle:Event") */ public function commentsViewAction(Event $event) { $comments = $event->getComments(); return array('comments' => $comments, 'headline' => "Comments"); }