Controller/CityController.php
/**
     * Gets edit form existing City entity.
     *
     * @Route("/{city}/edit", name="city_edit")
     *
     * @Method({"GET"})
     * @Template("LthrtCCSBundle:City:edit.html.twig")
     */
Gets edit form existing City entity.


Gets edit form existing City entity .
public function editAction(
        Request $request,
        City    $city
    ) {
        $this->notFound($city);
        $form       = $this->createEditForm($city);
        $deleteForm = $this->createDeleteForm($city);
        return [
            'city'        => $city,
            'form'        => $form->createView(),
            'delete_form' => $deleteForm->createView(),
        ];
    }
public function editAction ( Request $ request , City $ city ) { $ this -> notFound ( $ city ) ; $ form = $ this -> createEditForm ( $ city ) ; $ deleteForm = $ this -> createDeleteForm ( $ city ) ; return [ 'city' => $ city , 'form' => $ form -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ] ; }
Gets edit form existing City entity.
Gets edit form existing City entity .