src/AppBundle/Controller/AstilleroServicioBasicoController.php
/**
     * Displays a form to edit an existing astilleroServicioBasico entity.
     *
     * @Route("/{id}/editar", name="astillero_servicio-basico_edit")
     * @Method({"GET", "POST"})
     */
Displays a form to edit an existing astilleroServicioBasico entity.
Displays a form to edit an existing astilleroServicioBasico entity .
public function editAction(Request $request, AstilleroServicioBasico $astilleroServicioBasico)
    {
        $editForm = $this->createForm('AppBundle\Form\AstilleroServicioBasicoType', $astilleroServicioBasico);
        $editForm->handleRequest($request);
        if ($editForm->isSubmitted() && $editForm->isValid()) {
            $this->getDoctrine()->getManager()->flush();
            return $this->redirectToRoute('astillero_servicio-basico_index');
        }
        return $this->render('astilleroserviciobasico/edit.html.twig', array(
            'astilleroServicioBasico' => $astilleroServicioBasico,
            'edit_form' => $editForm->createView(),
            'title' => 'Editar servicio básico'
        ));
    }
public function editAction ( Request $ request , AstilleroServicioBasico $ astilleroServicioBasico ) { $ editForm = $ this -> createForm ( 'AppBundle\Form\AstilleroServicioBasicoType' , $ astilleroServicioBasico ) ; $ editForm -> handleRequest ( $ request ) ; if ( $ editForm -> isSubmitted ( ) && $ editForm -> isValid ( ) ) { $ this -> getDoctrine ( ) -> getManager ( ) -> flush ( ) ; return $ this -> redirectToRoute ( 'astillero_servicio-basico_index' ) ; } return $ this -> render ( 'astilleroserviciobasico/edit.html.twig' , array ( 'astilleroServicioBasico' => $ astilleroServicioBasico , 'edit_form' => $ editForm -> createView ( ) , 'title' => 'Editar servicio básico' ) ) ; }
Displays a form to edit an existing astilleroServicioBasico entity.
Displays a form to edit an existing astilleroServicioBasico entity .