Metadata
Magento\Sales\Model\ResourceModel\Metadata
What it does
This class serves as a metadata container and factory for Sales entities, providing access to both the resource model (mapper) and model instances.
Developers use it when they need to create new Sales entities (orders, invoices, shipments) or access their corresponding resource models for database operations.
It acts as a bridge between the object manager and specific Sales entity types.
Public Methods
- getMapper()
- getNewInstance()