original_string: public function newAction(Inventory $inventory)
      {
          $inventoryitem = new InventoryItem();
          $inventoryitem->setInventory($inventory);
          $form = $this->createForm(new InventoryItemType(), $inventoryitem);
  
          return array(
              'inventoryitem' => $inventoryitem,
              'form' => $form->createView(),
          );
      }
code: public function newAction(Inventory $inventory)
      {
          $inventoryitem = new InventoryItem();
          $inventoryitem->setInventory($inventory);
          $form = $this->createForm(new InventoryItemType(), $inventoryitem);
  
          return array(
              'inventoryitem' => $inventoryitem,
              'form' => $form->createView(),
          );
      }
code_tokens: public function newAction ( Inventory $ inventory ) { $ inventoryitem = new InventoryItem ( ) ; $ inventoryitem -> setInventory ( $ inventory ) ; $ form = $ this -> createForm ( new InventoryItemType ( ) , $ inventoryitem ) ; return array ( 'inventoryitem' => $ inventoryitem , 'form' => $ form -> createView ( ) , ) ; }
docstring: Displays a form to create a new InventoryItem entity.
  
  @Route("/inventory/{id}/new", name="stock_inventoryitem_new")
  @Method("GET")
  @Template()
docstring_tokens: Displays a form to create a new InventoryItem entity .