Log in
Model

Attribute

Magento\Sales\Model\ResourceModel\Attribute

What it does

This class handles saving specific attributes of sales entities (orders, invoices, shipments, etc.) without triggering a full model save.

Developers use this when they need to update individual attributes efficiently, such as updating order status or invoice state, while dispatching before/after events and maintaining database transaction integrity.

Public Methods

  • _resetState()
  • saveAttribute()