public function editAction(StockLevel $stocklevel)
    {
        $editForm = $this->createForm(new StockLevelType(), $stocklevel, array(
            'action' => $this->generateUrl('stock_stocklevel_update', array('id' => $stocklevel->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($stocklevel->getId(), 'stock_stocklevel_delete');

        return array(
            'stocklevel' => $stocklevel,
            'edit_form'   => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }