original_string: public function editAction(StockTransferItem $stocktransferitem)
      {
          $editForm = $this->createForm(new StockTransferItemType(), $stocktransferitem, array(
              'action' => $this->generateUrl('stock_transfersitem_update', array('id' => $stocktransferitem->getid())),
              'method' => 'PUT',
          ));
          $deleteForm = $this->createDeleteForm($stocktransferitem->getId(), 'stock_transfersitem_delete');
  
          return array(
              'stocktransferitem' => $stocktransferitem,
              'edit_form' => $editForm->createView(),
              'delete_form' => $deleteForm->createView(),
          );
      }
code: public function editAction(StockTransferItem $stocktransferitem)
      {
          $editForm = $this->createForm(new StockTransferItemType(), $stocktransferitem, array(
              'action' => $this->generateUrl('stock_transfersitem_update', array('id' => $stocktransferitem->getid())),
              'method' => 'PUT',
          ));
          $deleteForm = $this->createDeleteForm($stocktransferitem->getId(), 'stock_transfersitem_delete');
  
          return array(
              'stocktransferitem' => $stocktransferitem,
              'edit_form' => $editForm->createView(),
              'delete_form' => $deleteForm->createView(),
          );
      }
code_tokens: public function editAction ( StockTransferItem $ stocktransferitem ) { $ editForm = $ this -> createForm ( new StockTransferItemType ( ) , $ stocktransferitem , array ( 'action' => $ this -> generateUrl ( 'stock_transfersitem_update' , array ( 'id' => $ stocktransferitem -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; $ deleteForm = $ this -> createDeleteForm ( $ stocktransferitem -> getId ( ) , 'stock_transfersitem_delete' ) ; return array ( 'stocktransferitem' => $ stocktransferitem , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
docstring: Displays a form to edit an existing StockTransferItem entity.
  
  @Route("/{id}/edit", name="stock_transfersitem_edit", requirements={"id"="\d+"})
  @Method("GET")
  @Template()
docstring_tokens: Displays a form to edit an existing StockTransferItem entity .