public function updateAction(Setting $setting, Request $request)
    {
        $editForm = $this->createForm($this->get('amulen.dashboard.form.setting'), $setting, array(
            'action' => $this->generateUrl('admin_amulen_setting_update', array('id' => $setting->getid())),
            'method' => 'PUT',
        ));
        if ($editForm->handleRequest($request)->isValid()) {
            $this->getDoctrine()->getManager()->flush();

            return $this->redirect($this->generateUrl('admin_amulen_setting_show', array('id' => $setting->getId())));
        }
        $deleteForm = $this->createDeleteForm($setting->getId(), 'admin_amulen_setting_delete');

        return array(
            'setting' => $setting,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }
public function updateAction(Setting $setting, Request $request)
    {
        $editForm = $this->createForm($this->get('amulen.dashboard.form.setting'), $setting, array(
            'action' => $this->generateUrl('admin_amulen_setting_update', array('id' => $setting->getid())),
            'method' => 'PUT',
        ));
        if ($editForm->handleRequest($request)->isValid()) {
            $this->getDoctrine()->getManager()->flush();

            return $this->redirect($this->generateUrl('admin_amulen_setting_show', array('id' => $setting->getId())));
        }
        $deleteForm = $this->createDeleteForm($setting->getId(), 'admin_amulen_setting_delete');

        return array(
            'setting' => $setting,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }
public function updateAction ( Setting $ setting , Request $ request ) { $ editForm = $ this -> createForm ( $ this -> get ( 'amulen.dashboard.form.setting' ) , $ setting , array ( 'action' => $ this -> generateUrl ( 'admin_amulen_setting_update' , array ( 'id' => $ setting -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; if ( $ editForm -> handleRequest ( $ request ) -> isValid ( ) ) { $ this -> getDoctrine ( ) -> getManager ( ) -> flush ( ) ; return $ this -> redirect ( $ this -> generateUrl ( 'admin_amulen_setting_show' , array ( 'id' => $ setting -> getId ( ) ) ) ) ; } $ deleteForm = $ this -> createDeleteForm ( $ setting -> getId ( ) , 'admin_amulen_setting_delete' ) ; return array ( 'setting' => $ setting , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Edits an existing Setting entity.

@Route("/{id}/update", name="admin_amulen_setting_update", requirements={"id"="\d+"})
@Method("PUT")
@Template("FlowcodeDashboardBundle:Setting:edit.html.twig")
Edits an existing Setting entity .