Log in
Model

Attribute

Magento\Sales\Model\ResourceModel\Attribute

What it does

This class provides functionality to save individual attributes of sales entities (orders, invoices, shipments, etc.) without having to save the entire entity.

Developers use this when they need to update specific fields on a sales entity efficiently, such as updating an order status or tracking number, while avoiding the overhead of a full entity save operation.

It handles database transactions, dispatches events before and after saving, and ensures data integrity.

Public Methods

  • _resetState()
  • saveAttribute()