Good afternoon, I would like to know where the file that makes the querys in Magento is. I use version 1.9.
Good afternoon, I would like to know where the file that makes the querys in Magento is. I use version 1.9.
The class that executes queries depends on the driver that is configured in Magento. If using mysqli would be in this class: link
Queries are generated in different parts of the system, but are usually represented not by SQL directly, but by collections. The Mage_Catalog_Model_Resource_Product_Collection class for example can be used to fetch products, and this class inherits from the generic collection, which in turn uses Zend_Db_Select to construct the query.