src/AppBundle/Controller/MarinaHumedaTarifaController.php
/**
     * Displays a form to edit an existing marinaHumedaTarifa entity.
     *
     * @Route("/{id}/editar", name="marinahumeda-tarifas_edit")
     * @Method({"GET", "POST"})
     */
Displays a form to edit an existing marinaHumedaTarifa entity.
Displays a form to edit an existing marinaHumedaTarifa entity .
public function editAction(Request $request, MarinaHumedaTarifa $marinaHumedaTarifa)
    {
        $deleteForm = $this->createDeleteForm($marinaHumedaTarifa);
        $editForm = $this->createForm('AppBundle\Form\MarinaHumedaTarifaType', $marinaHumedaTarifa);
        $editForm->handleRequest($request);
        if ($editForm->isSubmitted() && $editForm->isValid()) {
            $this->getDoctrine()->getManager()->flush();
            return $this->redirectToRoute('marinahumeda-tarifas_index');
        }
        return $this->render('marinahumeda/tarifa/new.html.twig', [
            'title' => 'Editar tarifa',
            'marinaHumedaTarifa' => $marinaHumedaTarifa,
            'form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView()
        ]);
    }
public function editAction ( Request $ request , MarinaHumedaTarifa $ marinaHumedaTarifa ) { $ deleteForm = $ this -> createDeleteForm ( $ marinaHumedaTarifa ) ; $ editForm = $ this -> createForm ( 'AppBundle\Form\MarinaHumedaTarifaType' , $ marinaHumedaTarifa ) ; $ editForm -> handleRequest ( $ request ) ; if ( $ editForm -> isSubmitted ( ) && $ editForm -> isValid ( ) ) { $ this -> getDoctrine ( ) -> getManager ( ) -> flush ( ) ; return $ this -> redirectToRoute ( 'marinahumeda-tarifas_index' ) ; } return $ this -> render ( 'marinahumeda/tarifa/new.html.twig' , [ 'title' => 'Editar tarifa' , 'marinaHumedaTarifa' => $ marinaHumedaTarifa , 'form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) ] ) ; }
Displays a form to edit an existing marinaHumedaTarifa entity.
Displays a form to edit an existing marinaHumedaTarifa entity .