src/Cpm/JovenesBundle/Controller/InstanciaEventoController.php
/**
     * Finds and displays a InstanciaEvento entity.
     *
     * @Route("/{id}/show", name="instancia_show")
     * @Template()
     */
Finds and displays a InstanciaEvento entity.
Finds and displays a InstanciaEvento entity .
public function showAction($id)
    {
		$entity = $this->getEntity('CpmJovenesBundle:InstanciaEvento', $id);
		$invitaciones = $this->getRepository('CpmJovenesBundle:Invitacion')->getInvitacionesDTO(array('instanciaEvento'=> $id));
        $deleteForm = $this->createDeleteForm($id);
		$reinvitarForm = $this->createReinvitarForm($id);
        return array(
            'entity'      => $entity,
            'invitaciones'      => $invitaciones,
            'delete_form' => $deleteForm->createView(),
        	'reinvitar_form' =>  $reinvitarForm->createView()
              );
    }
public function showAction ( $ id ) { $ entity = $ this -> getEntity ( 'CpmJovenesBundle:InstanciaEvento' , $ id ) ; $ invitaciones = $ this -> getRepository ( 'CpmJovenesBundle:Invitacion' ) -> getInvitacionesDTO ( array ( 'instanciaEvento' => $ id ) ) ; $ deleteForm = $ this -> createDeleteForm ( $ id ) ; $ reinvitarForm = $ this -> createReinvitarForm ( $ id ) ; return array ( 'entity' => $ entity , 'invitaciones' => $ invitaciones , 'delete_form' => $ deleteForm -> createView ( ) , 'reinvitar_form' => $ reinvitarForm -> createView ( ) ) ; }
Finds and displays a InstanciaEvento entity.
Finds and displays a InstanciaEvento entity .