Suppose we have a data collection and we want to get the sql query running behind it then the following code is the syntax to check it.
$collection = Mage::getModel('catalog/product')->getCollection();
echo $collection->getSelect()->__toString()
$collection = Mage::getModel('catalog/product')->getCollection();
echo $collection->getSelect()->__toString()
magento extension development professional developers forum.
ReplyDelete