Magento Query File

0

Good afternoon, I would like to know where the file that makes the querys in Magento is. I use version 1.9.

    
asked by anonymous 28.09.2017 / 21:02

1 answer

0

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.

    
11.10.2017 / 23:30