public function newAction(StockTransfer $stockTransfer)
    {
        $stocktransferitem = new StockTransferItem();
        $stocktransferitem->setStockTransfer($stockTransfer);
        $form = $this->createForm(new StockTransferItemType(), $stocktransferitem);

        return array(
            'stocktransferitem' => $stocktransferitem,
            'form' => $form->createView(),
        );
    }
public function newAction(StockTransfer $stockTransfer)
    {
        $stocktransferitem = new StockTransferItem();
        $stocktransferitem->setStockTransfer($stockTransfer);
        $form = $this->createForm(new StockTransferItemType(), $stocktransferitem);

        return array(
            'stocktransferitem' => $stocktransferitem,
            'form' => $form->createView(),
        );
    }
public function newAction ( StockTransfer $ stockTransfer ) { $ stocktransferitem = new StockTransferItem ( ) ; $ stocktransferitem -> setStockTransfer ( $ stockTransfer ) ; $ form = $ this -> createForm ( new StockTransferItemType ( ) , $ stocktransferitem ) ; return array ( 'stocktransferitem' => $ stocktransferitem , 'form' => $ form -> createView ( ) , ) ; }
Displays a form to create a new StockTransferItem entity.

@Route("/{id}/new", name="stock_transfersitem_new")
@Method("GET")
@Template()
Displays a form to create a new StockTransferItem entity .