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