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;
    }