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(),
        );
    }