Model
Order
Magento\Sales\Model\ResourceModel\Order
What it does
This resource model handles database operations for sales orders in Magento 2.
Developers use it to save orders to the database, aggregate product information by type within an order, and manage order state validation.
It automatically handles order item relationships, generates protection codes, and sets store information when creating new orders.
Public Methods
- aggregateProductsByTypes()
- save()