As far as I know (/knew), the following 2 snippets were pretty much equivalent:
$collection = Mage::getResourceModel("reports/product_collection")
$collection = Mage::getModel("reports/resource_product_collection")
They both result in an instance of same class (
The problem comes when I try to rewrite the class. Here is how I did this:
<reports> <rewrite> <resource_product_collection>MyNamespace_MyModule_Model_Resource_Product_Collection</resource_product_collection> </rewrite> </reports>
This is where the difference appears, the first one isn't rewritten, while the second one is.
My questions are:
- Is this the intended behavior ? Why ?
- What is the difference between the 2 initial snippets ?
Note: This happens on Magento 22.214.171.124