Timeline for How do I get sale_order_item table data by using injection method?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 21, 2021 at 18:59 | comment | added | nick.graziano | I am not sure of a comprehensive list for all collections. In Magento you can slap Factory at the end of most interfaces, models, etc... and Magento will auto create the factory for you. As far as trying to find the collection you are looking for, I usually just try to find the model I am looking for in a ResourceModel namespace and there should be a corresponding Collection. | |
| May 21, 2021 at 18:57 | comment | added | nick.graziano | You can use \Magento\Sales\Model\ResourceModel\Grid\CollectionFactory. github.com/magento/magento2/blob/2.4-develop/app/code/Magento/… | |
| May 21, 2021 at 6:29 | comment | added | Paul Fan | Thanks! Its work wonderful. One more question, if I want to get data from Sales_order_grid. which Collection Factory I should use? any documentation I can view the spec of each factory? | |
| May 21, 2021 at 6:28 | vote | accept | Paul Fan | ||
| May 21, 2021 at 3:51 | history | answered | nick.graziano | CC BY-SA 4.0 |