Collection
Order\Collection
Magento\Sales\Model\ResourceModel\Order\Collection
What it does
This collection class retrieves and manages sales order data from the database.
Developers use it to fetch, filter, and search order records, including related billing and shipping address information, order item counts, and billing agreement associations.
It's commonly used in admin grids, reports, and custom order listing pages.
Public Methods
- addItemCountExpr()
- getSelectCountSql()
- addAddressFields()
- addFieldToSearchFilter()
- addAttributeToSearchFilter()
- addBillingAgreementsFilter()