Factory
CollectionFactory
Magento\Sales\Model\ResourceModel\Order\CollectionFactory
What it does
This factory class creates instances of Order Collection objects in Magento 2.
Developers use it to retrieve and work with collections of sales orders, optionally filtering by customer ID.
It's commonly used when you need to load multiple orders at once, such as displaying order history or generating reports.
Public Methods
- create()