src/AppBundle/Controller/CuentaBancariaController.php
/**
     * Displays a form to edit an existing cuentaBancarium entity.
     *
     * @Route("/{id}/editar", name="cuenta-bancaria_edit")
     * @Method({"GET", "POST"})
     */
Displays a form to edit an existing cuentaBancarium entity.
Displays a form to edit an existing cuentaBancarium entity .
public function editAction(Request $request, CuentaBancaria $cuentaBancarium)
    {
        $deleteForm = $this->createDeleteForm($cuentaBancarium);
        $editForm = $this->createForm('AppBundle\Form\CuentaBancariaType', $cuentaBancarium);
        $editForm->handleRequest($request);
        if ($editForm->isSubmitted() && $editForm->isValid()) {
            $this->getDoctrine()->getManager()->flush();
            return $this->redirectToRoute('cuenta-bancaria_index');
        }
        return $this->render('cuentabancaria/edit.html.twig', array(
            'cuentaBancarium' => $cuentaBancarium,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
            'title' => 'Editar cuenta bancaria'
        ));
    }
public function editAction ( Request $ request , CuentaBancaria $ cuentaBancarium ) { $ deleteForm = $ this -> createDeleteForm ( $ cuentaBancarium ) ; $ editForm = $ this -> createForm ( 'AppBundle\Form\CuentaBancariaType' , $ cuentaBancarium ) ; $ editForm -> handleRequest ( $ request ) ; if ( $ editForm -> isSubmitted ( ) && $ editForm -> isValid ( ) ) { $ this -> getDoctrine ( ) -> getManager ( ) -> flush ( ) ; return $ this -> redirectToRoute ( 'cuenta-bancaria_index' ) ; } return $ this -> render ( 'cuentabancaria/edit.html.twig' , array ( 'cuentaBancarium' => $ cuentaBancarium , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , 'title' => 'Editar cuenta bancaria' ) ) ; }
Displays a form to edit an existing cuentaBancarium entity.
Displays a form to edit an existing cuentaBancarium entity .