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