Log in
Interface

OrderItemResourceInterface

Magento\Sales\Model\Spi\OrderItemResourceInterface

What it does

This interface defines the contract for order item resource operations in Magento 2.

Developers use this when implementing custom persistence logic for order items, ensuring they provide save, load, and delete operations.

It's part of the Service Provider Interface (SPI) layer, allowing extensibility while maintaining API stability.

Public Methods

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