title: How to get parent product id in magento?
body: <p>I know that in Magento 1.4.2.0 one gets parent id's like so</p>
  
  <pre><code>list( $parentId ) = Mage::getModel('catalog/product_type_configurable')
                              -&gt;getParentIdsByChild( $product-&gt;getId() );
  </code></pre>
  
  <p>My question is: if I don't know what the parent is, how do I know to use the 'catalog/product_type_<strong>configurable</strong>' vs 'catalog/product_type_<strong>grouped</strong>' model to get the id?</p>