src/Flowcode/ShopBundle/Controller/StockTransferItemController.php
/**
     * Displays a form to edit an existing StockTransferItem entity.
     *
     * @Route("/{id}/edit", name="stock_transfersitem_edit", requirements={"id"="\d+"})
     * @Method("GET")
     * @Template()
     */
Displays a form to edit an existing StockTransferItem entity.
Displays a form to edit an existing StockTransferItem entity .
public function editAction(StockTransferItem $stocktransferitem)
    {
        $editForm = $this->createForm(new StockTransferItemType(), $stocktransferitem, array(
            'action' => $this->generateUrl('stock_transfersitem_update', array('id' => $stocktransferitem->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($stocktransferitem->getId(), 'stock_transfersitem_delete');
        return array(
            'stocktransferitem' => $stocktransferitem,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }
public function editAction ( StockTransferItem $ stocktransferitem ) { $ editForm = $ this -> createForm ( new StockTransferItemType ( ) , $ stocktransferitem , array ( 'action' => $ this -> generateUrl ( 'stock_transfersitem_update' , array ( 'id' => $ stocktransferitem -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; $ deleteForm = $ this -> createDeleteForm ( $ stocktransferitem -> getId ( ) , 'stock_transfersitem_delete' ) ; return array ( 'stocktransferitem' => $ stocktransferitem , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Displays a form to edit an existing StockTransferItem entity.
Displays a form to edit an existing StockTransferItem entity .