Log in
Interface

OrderItemResourceInterface

Magento\Sales\Model\Spi\OrderItemResourceInterface

What it does

This interface defines the contract for managing database operations (CRUD) for order items in Magento 2.

Developers use this interface when they need to implement custom resource models for persisting, retrieving, or deleting order item data.

It serves as a Service Provider Interface (SPI) that ensures consistent data access patterns across different implementations of order item resource handling.

Public Methods

  • save()
  • load()
  • delete()