Model

AttributePersistor

Magento\Eav\Model\ResourceModel\AttributePersistor

What it does

This class manages the persistence of EAV (Entity-Attribute-Value) attribute data to the database.

Developers use it to batch register insert, update, and delete operations for entity attributes, then flush them all at once for optimized database performance.

It's particularly useful when saving complex entities with multiple attributes across different scopes (store views).

Public Methods

  • registerDelete()
  • registerUpdate()
  • registerInsert()
  • processDeletes()
  • processInserts()
  • processUpdates()
  • flush()