Controller/CountyController.php
/**
     * Gets edit form existing County entity.
     *
     * @Route("/{county}/edit/", name="county_edit")
     *
     * @Method({"GET"})
     * @Template("LthrtCCSBundle:County:edit.html.twig")
     */
Gets edit form existing County entity.


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