Lets say I load my product object:
$product = Mage::getModel(\'catalog/product\')->load($productId);
Is there a function or some way to
The following should work:
$product->getTypeInstance(true)->getChildrenIds($product->getId(), false)
The result is a multi-dimensional array with the top level being options and the children of options being products.
Also, you can change the false to a true and it will only return required options of the bundle.