Model
EntityStorage
Magento\Sales\Model\EntityStorage
What it does
EntityStorage acts as an in-memory registry for storing and retrieving Magento sales entities (like orders, invoices, shipments) during request processing.
Developers use it to cache entities and avoid redundant database queries, accessing them either by ID or by a set of identifying fields.
This improves performance when working with multiple related sales entities in a single operation.
Public Methods
- addByIdentifyingFields()
- add()
- get()
- getByIdentifyingFields()
- remove()
- has()