original_string: public function updateAction(StockChangeLog $stockchangelog, Request $request)
      {
          $editForm = $this->createForm(new StockChangeLogType(), $stockchangelog, array(
              'action' => $this->generateUrl('admin_shop_changelog_update', array('id' => $stockchangelog->getid())),
              'method' => 'PUT',
          ));
          if ($editForm->handleRequest($request)->isValid()) {
              $this->getDoctrine()->getManager()->flush();
  
              return $this->redirect($this->generateUrl('admin_shop_changelog_show', array('id' => $stockchangelog->getId())));
          }
          $deleteForm = $this->createDeleteForm($stockchangelog->getId(), 'admin_shop_changelog_delete');
  
          return array(
              'stockchangelog' => $stockchangelog,
              'edit_form' => $editForm->createView(),
              'delete_form' => $deleteForm->createView(),
          );
      }
code: public function updateAction(StockChangeLog $stockchangelog, Request $request)
      {
          $editForm = $this->createForm(new StockChangeLogType(), $stockchangelog, array(
              'action' => $this->generateUrl('admin_shop_changelog_update', array('id' => $stockchangelog->getid())),
              'method' => 'PUT',
          ));
          if ($editForm->handleRequest($request)->isValid()) {
              $this->getDoctrine()->getManager()->flush();
  
              return $this->redirect($this->generateUrl('admin_shop_changelog_show', array('id' => $stockchangelog->getId())));
          }
          $deleteForm = $this->createDeleteForm($stockchangelog->getId(), 'admin_shop_changelog_delete');
  
          return array(
              'stockchangelog' => $stockchangelog,
              'edit_form' => $editForm->createView(),
              'delete_form' => $deleteForm->createView(),
          );
      }
code_tokens: public function updateAction ( StockChangeLog $ stockchangelog , Request $ request ) { $ editForm = $ this -> createForm ( new StockChangeLogType ( ) , $ stockchangelog , array ( 'action' => $ this -> generateUrl ( 'admin_shop_changelog_update' , array ( 'id' => $ stockchangelog -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; if ( $ editForm -> handleRequest ( $ request ) -> isValid ( ) ) { $ this -> getDoctrine ( ) -> getManager ( ) -> flush ( ) ; return $ this -> redirect ( $ this -> generateUrl ( 'admin_shop_changelog_show' , array ( 'id' => $ stockchangelog -> getId ( ) ) ) ) ; } $ deleteForm = $ this -> createDeleteForm ( $ stockchangelog -> getId ( ) , 'admin_shop_changelog_delete' ) ; return array ( 'stockchangelog' => $ stockchangelog , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
docstring: Edits an existing StockChangeLog entity.
  
  @Route("/{id}/update", name="admin_shop_changelog_update", requirements={"id"="\d+"})
  @Method("PUT")
  @Template("FlowerStockBundle:StockChangeLog:edit.html.twig")
docstring_tokens: Edits an existing StockChangeLog entity .