Log in
Model

AbstractEntity

Magento\Eav\Model\Entity\AbstractEntity

What it does

AbstractEntity is the core resource model class for Magento 2's Entity-Attribute-Value (EAV) system.

Developers extend this class when creating custom EAV entities that need dynamic attributes, such as products or customers.

It handles loading, saving, and deleting entities along with their attribute values across multiple database tables.

Public Methods

  • setConnection()
  • getConnection()
  • getIdFieldName()
  • getTable()
  • setType()
  • getEntityType()
  • getType()
  • getTypeId()
  • unsetAttributes()
  • getAttribute()
  • addAttribute()
  • isPartialLoad()
  • isPartialSave()
  • loadAllAttributes()
  • getSortedAttributes()
  • attributesCompare()
  • walkAttributes()
  • getAttributesByCode()
  • getAttributesByTable()
  • getEntityTable()
  • getLinkField()
  • getEntityIdField()
  • getValueEntityIdField()
  • getValueTablePrefix()
  • getEntityTablePrefix()
  • isAttributeStatic()
  • validate()
  • setNewIncrementId()
  • checkAttributeUniqueValue()
  • getDefaultAttributeSourceModel()
  • load()
  • save()
  • saveAttribute()
  • delete()
  • getDefaultAttributes()
  • afterLoad()
  • beforeSave()
  • afterSave()
  • beforeDelete()
  • afterDelete()
  • _resetState()