src/Cpm/JovenesBundle/Controller/UsuarioController.php
/**
     * Finds and displays a Usuario entity.
     *
     * @Route("/{id}/show", name="usuario_show")
     * @Template()
     */
Finds and displays a Usuario entity.
Finds and displays a Usuario entity .
public function showAction($id)
    {
        $em = $this->getDoctrine()->getEntityManager();
		$entity = $this->getEntity('CpmJovenesBundle:Usuario', $id);
		$ciclos = $em->getRepository('CpmJovenesBundle:Ciclo')->findBy(array(),array('id'=>'desc'));
        $deleteForm = $this->createDeleteForm($id);
        $lockForm = $this->createDeleteForm($id);
        return array(
            'entity'      => $entity,
            'delete_form' => $deleteForm->createView(),
        	'lock_form' => $lockForm->createView(), 
        	'ciclos' => $ciclos      );
    }
public function showAction ( $ id ) { $ em = $ this -> getDoctrine ( ) -> getEntityManager ( ) ; $ entity = $ this -> getEntity ( 'CpmJovenesBundle:Usuario' , $ id ) ; $ ciclos = $ em -> getRepository ( 'CpmJovenesBundle:Ciclo' ) -> findBy ( array ( ) , array ( 'id' => 'desc' ) ) ; $ deleteForm = $ this -> createDeleteForm ( $ id ) ; $ lockForm = $ this -> createDeleteForm ( $ id ) ; return array ( 'entity' => $ entity , 'delete_form' => $ deleteForm -> createView ( ) , 'lock_form' => $ lockForm -> createView ( ) , 'ciclos' => $ ciclos ) ; }
Finds and displays a Usuario entity.
Finds and displays a Usuario entity .