Model
ItemRepository
Magento\Sales\Model\Order\ItemRepository
What it does
This repository class manages CRUD operations for order items in Magento 2.
Developers use it to load, save, delete, and search for order items programmatically, ensuring proper handling of product options and parent-child item relationships.
It implements caching through a registry to avoid redundant database queries and includes product option processing for different product types.
Public Methods
- _resetState()
- get()
- getList()
- delete()
- deleteById()
- save()