I have a simple product collection and I want to get a collection of parent products from the child product collection.
$child_collection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToFilter('custom_attribute',array('eq'=>'value'));
How can I get the parent product collection from this child products collection?