I am looping through products results, and if the product is a grouped product, I want to get all products in that group. I\'m doing this:
$products = Mage::getM
Or if you want just to get ids of associated products, you can use the following method (it is much faster):
public function getAssociatedProductIds($groupedProductId)
{
$coreResource = Mage::getSingleton('core/resource');
$conn = $coreResource->getConnection('core_read');
$select = $conn->select()
->from($coreResource->getTableName('catalog/product_relation'), array('child_id'))
->where('parent_id = ?', $groupedProductId);
return $conn->fetchCol($select);
}