app/code/community/Nexcessnet/Turpentine/Helper/Ban.php
public function getParentProducts($childProduct) {
        $parentProducts = array();
        foreach (array('configurable', 'grouped') as $pType) {
            foreach (Mage::getModel('catalog/product_type_'.$pType)
                    ->getParentIdsByChild($childProduct->getId()) as $parentId) {
                $parentProducts[] = Mage::getModel('catalog/product')
                    ->load($parentId);
            }
        }
        return $parentProducts;
    }
public function getParentProducts($childProduct) {
        $parentProducts = array();
        foreach (array('configurable', 'grouped') as $pType) {
            foreach (Mage::getModel('catalog/product_type_'.$pType)
                    ->getParentIdsByChild($childProduct->getId()) as $parentId) {
                $parentProducts[] = Mage::getModel('catalog/product')
                    ->load($parentId);
            }
        }
        return $parentProducts;
    }
public function getParentProducts ( $ childProduct ) { $ parentProducts = array ( ) ; foreach ( array ( 'configurable' , 'grouped' ) as $ pType ) { foreach ( Mage :: getModel ( 'catalog/product_type_' . $ pType ) -> getParentIdsByChild ( $ childProduct -> getId ( ) ) as $ parentId ) { $ parentProducts [ ] = Mage :: getModel ( 'catalog/product' ) -> load ( $ parentId ) ; } } return $ parentProducts ; }
Get parent products of a configurable or group product

@param  Mage_Catalog_Model_Product $childProduct
@return array
Get parent products of a configurable or group product