The new method in Virtuemart is named getProductChildIds in administrator/components/com_virtuemart/models/product.php . So you have to change line 62 to $product->children = $model->getProductChildIds($productID);
More