What class (if any) is called with this line of code?
Mage::getResourceModel('sales/order_invoice_collection')
Essentially I”m trying to figure out what database table is accessed with this resource model and how I can tweak that. Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The class you are looking for is this:
located in
app/code/core/Mage/Sales/Model/Mysql4/Order/Invoice/Collection.php.If you take a look at the configuration for the sales module
app/code/core/Mage/Sales/etc/config.xml, you can see the table name in the definition of the resource models:To learn more about how Magento interacts with the database, you should read about models, resource models, and collections:
http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-5-magento-models-and-orm-basics