src/Flowcode/ShopBundle/Controller/ShopSettingController.php
public function updateAction(ShopSetting $shopSetting, Request $request)
    {
        $editForm = $this->createForm(new ShopSettingType(), $shopSetting, array(
            'action' => $this->generateUrl('admin_amulen_shop_setting_update', array('id' => $shopSetting->getid())),
            'method' => 'PUT',
        ));
        if ($editForm->handleRequest($request)->isValid()) {
            $this->getDoctrine()->getManager()->flush();

            return $this->redirect($this->generateUrl('admin_amulen_shop_setting_show', array('id' => $shopSetting->getId())));
        }
        $deleteForm = $this->createDeleteForm($shopSetting->getId(), 'admin_amulen_shop_setting_delete');

        return array(
            'shopSetting' => $shopSetting,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }
public function updateAction(ShopSetting $shopSetting, Request $request)
    {
        $editForm = $this->createForm(new ShopSettingType(), $shopSetting, array(
            'action' => $this->generateUrl('admin_amulen_shop_setting_update', array('id' => $shopSetting->getid())),
            'method' => 'PUT',
        ));
        if ($editForm->handleRequest($request)->isValid()) {
            $this->getDoctrine()->getManager()->flush();

            return $this->redirect($this->generateUrl('admin_amulen_shop_setting_show', array('id' => $shopSetting->getId())));
        }
        $deleteForm = $this->createDeleteForm($shopSetting->getId(), 'admin_amulen_shop_setting_delete');

        return array(
            'shopSetting' => $shopSetting,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }
public function updateAction ( ShopSetting $ shopSetting , Request $ request ) { $ editForm = $ this -> createForm ( new ShopSettingType ( ) , $ shopSetting , array ( 'action' => $ this -> generateUrl ( 'admin_amulen_shop_setting_update' , array ( 'id' => $ shopSetting -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; if ( $ editForm -> handleRequest ( $ request ) -> isValid ( ) ) { $ this -> getDoctrine ( ) -> getManager ( ) -> flush ( ) ; return $ this -> redirect ( $ this -> generateUrl ( 'admin_amulen_shop_setting_show' , array ( 'id' => $ shopSetting -> getId ( ) ) ) ) ; } $ deleteForm = $ this -> createDeleteForm ( $ shopSetting -> getId ( ) , 'admin_amulen_shop_setting_delete' ) ; return array ( 'shopSetting' => $ shopSetting , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Edits an existing ShopSetting entity.

@Route("/{id}/update", name="admin_amulen_shop_setting_update", requirements={"id"="\d+"})
@Method("PUT")
@Template("FlowcodeShopBundle:ShopSetting:show.html.twig")
Edits an existing ShopSetting entity .