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

        return array(
            'inventoryitem' => $inventoryitem,
            'form' => $form->createView(),
        );
    }