/** * @Route("/ajax-interested/{id}", name="event_ajax_interested", requirements={"id" = "\d+"}) * @Template("ConnectionEventBundle:Event:going_interested.html.twig") * @ParamConverter("Event", class="ConnectionEventBundle:Event") */ public function interestedAjaxAction(Event $event, Request $request) { if (!$request->isXmlHttpRequest()) { throw new AccessDeniedException(); } return array('participants' => $event->getInteresteds()); }
/** * {@inheritDoc} */ public function getInteresteds() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getInteresteds', array()); return parent::getInteresteds(); }