public function showAction(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 showAction(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 showAction ( 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 ( ) , ) ; }
Finds and displays a StockTransfer entity.

@Route("/{id}/show", name="stock_transfers_show", requirements={"id"="\d+"})
@Method("GET")
@Template()
Finds and displays a StockTransfer entity .