src/Flowcode/ShopBundle/Controller/InventoryItemController.php
/**
     * Finds and displays a InventoryItem entity.
     *
     * @Route("/{id}/show", name="stock_inventoryitem_show", requirements={"id"="\d+"})
     * @Method("GET")
     * @Template()
     */
Finds and displays a InventoryItem entity.
Finds and displays a InventoryItem entity .
public function showAction(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(),
        );
    }
public function showAction ( 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 ( ) , ) ; }
Finds and displays a InventoryItem entity.
Finds and displays a InventoryItem entity .