public function newAction(Inventory $inventory)
    {
        $inventoryitem = new InventoryItem();
        $inventoryitem->setInventory($inventory);
        $form = $this->createForm(new InventoryItemType(), $inventoryitem);

        return array(
            'inventoryitem' => $inventoryitem,
            'form' => $form->createView(),
        );
    }
public function newAction(Inventory $inventory)
    {
        $inventoryitem = new InventoryItem();
        $inventoryitem->setInventory($inventory);
        $form = $this->createForm(new InventoryItemType(), $inventoryitem);

        return array(
            'inventoryitem' => $inventoryitem,
            'form' => $form->createView(),
        );
    }
public function newAction ( Inventory $ inventory ) { $ inventoryitem = new InventoryItem ( ) ; $ inventoryitem -> setInventory ( $ inventory ) ; $ form = $ this -> createForm ( new InventoryItemType ( ) , $ inventoryitem ) ; return array ( 'inventoryitem' => $ inventoryitem , 'form' => $ form -> createView ( ) , ) ; }
Displays a form to create a new InventoryItem entity.

@Route("/inventory/{id}/new", name="stock_inventoryitem_new")
@Method("GET")
@Template()
Displays a form to create a new InventoryItem entity .