Model
Attribute
Magento\Eav\Model\ResourceModel\Entity\Attribute
What it does
This resource model manages the database operations for EAV (Entity-Attribute-Value) attributes in Magento 2.
Developers use this class to load, save, delete, and manage attribute data, including attribute options, store labels, and attribute set assignments.
It handles the complex database relationships between attributes, entity types, attribute sets, and store-specific labels.
Public Methods
- loadByCode()
- deleteEntity()
- saveInSetIncluding()
- getIdByCode()
- getEntityAttribute()
- getAttributeCodesByFrontendType()
- getFlatUpdateSelect()
- describeTable()
- getAdditionalAttributeTable()
- getStoreLabelsByAttributeId()
- getValidAttributeIds()