Log in
Model

Metadata

Magento\Sales\Model\ResourceModel\Metadata

What it does

This class serves as a metadata provider for Sales entities, managing the relationship between model classes and their corresponding resource models.

Developers use it to obtain resource model mappers for database operations and to create new instances of sales entities like orders, invoices, or shipments.

It acts as a factory and configuration holder that abstracts the instantiation of sales-related models and their resource classes.

Public Methods

  • getMapper()
  • getNewInstance()