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