src/Cpm/JovenesBundle/Controller/PresentacionController.php
/**
     * Displays a form to edit an existing Presentacion entity.
     *
     * @Route("/{id}/edit", name="presentacion_edit")
     * @Template()
     */
Displays a form to edit an existing Presentacion entity.
Displays a form to edit an existing Presentacion entity .
public function editAction($id)
    {
        $presentacion= $this->getEntityForUpdate('CpmJovenesBundle:Presentacion', $id);
        if ($presentacion->esExterna()) {
			return $this->forward("CpmJovenesBundle:PresentacionExterna:edit", array('id'=>$id));
        }else{
    		return $this->forward("CpmJovenesBundle:PresentacionInterna:edit", array('id'=>$id));
        }
    }
public function editAction ( $ id ) { $ presentacion = $ this -> getEntityForUpdate ( 'CpmJovenesBundle:Presentacion' , $ id ) ; if ( $ presentacion -> esExterna ( ) ) { return $ this -> forward ( " CpmJovenesBundle:PresentacionExterna:edit " , array ( 'id' => $ id ) ) ; } else { return $ this -> forward ( " CpmJovenesBundle:PresentacionInterna:edit " , array ( 'id' => $ id ) ) ; } }
Displays a form to edit an existing Presentacion entity.
Displays a form to edit an existing Presentacion entity .