Model
ItemRepository
Magento\Sales\Model\Order\ItemRepository
What it does
The ItemRepository class manages CRUD operations for order items in Magento 2.
Developers use this class to retrieve, save, delete, or search for order line items, with built-in support for product options and parent-child item relationships.
It implements caching to prevent redundant database queries and automatically handles product option processing during save operations.
Public Methods
- _resetState()
- get()
- getList()
- delete()
- deleteById()
- save()