public function editAction(Request $request, SakonninTemplate $sakonninTemplate)
    {
        $deleteForm = $this->createDeleteForm($sakonninTemplate);
        $editForm = $this->createForm('BisonLab\SakonninBundle\Form\SakonninTemplateType', $sakonninTemplate);
        $editForm->handleRequest($request);

        if ($editForm->isSubmitted() && $editForm->isValid()) {
            $em = $this->getDoctrineManager()->flush();

            return $this->redirectToRoute('sakonnintemplate_show', array('id' => $sakonninTemplate->getId()));
        }

        return $this->render('BisonLabSakonninBundle:SakonninTemplate:edit.html.twig',
            array(
                'sakonninTemplate' => $sakonninTemplate,
                'edit_form' => $editForm->createView(),
                'delete_form' => $deleteForm->createView(),
        ));
    }
public function editAction(Request $request, SakonninTemplate $sakonninTemplate)
    {
        $deleteForm = $this->createDeleteForm($sakonninTemplate);
        $editForm = $this->createForm('BisonLab\SakonninBundle\Form\SakonninTemplateType', $sakonninTemplate);
        $editForm->handleRequest($request);

        if ($editForm->isSubmitted() && $editForm->isValid()) {
            $em = $this->getDoctrineManager()->flush();

            return $this->redirectToRoute('sakonnintemplate_show', array('id' => $sakonninTemplate->getId()));
        }

        return $this->render('BisonLabSakonninBundle:SakonninTemplate:edit.html.twig',
            array(
                'sakonninTemplate' => $sakonninTemplate,
                'edit_form' => $editForm->createView(),
                'delete_form' => $deleteForm->createView(),
        ));
    }
public function editAction ( Request $ request , SakonninTemplate $ sakonninTemplate ) { $ deleteForm = $ this -> createDeleteForm ( $ sakonninTemplate ) ; $ editForm = $ this -> createForm ( 'BisonLab\SakonninBundle\Form\SakonninTemplateType' , $ sakonninTemplate ) ; $ editForm -> handleRequest ( $ request ) ; if ( $ editForm -> isSubmitted ( ) && $ editForm -> isValid ( ) ) { $ em = $ this -> getDoctrineManager ( ) -> flush ( ) ; return $ this -> redirectToRoute ( 'sakonnintemplate_show' , array ( 'id' => $ sakonninTemplate -> getId ( ) ) ) ; } return $ this -> render ( 'BisonLabSakonninBundle:SakonninTemplate:edit.html.twig' , array ( 'sakonninTemplate' => $ sakonninTemplate , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ) ; }
Displays a form to edit an existing sakonninTemplate entity.

@Route("/{id}/edit", name="sakonnintemplate_edit", methods={"GET", "POST"})
Displays a form to edit an existing sakonninTemplate entity .