Log in
Model

Type

Magento\Eav\Model\Entity\Type

What it does

This class represents an EAV entity type (like customer, product, category) in Magento 2.

Developers use it to load entity type configurations, retrieve associated attributes and attribute sets, and generate new increment IDs for entities.

It provides access to entity-specific settings like table names, ID fields, and attribute models needed for working with EAV entities.

Public Methods

  • loadByCode()
  • getAttributeCollection()
  • getAttributeSetCollection()
  • fetchNewIncrementId()
  • getEntityIdField()
  • getEntityTable()
  • getValueTablePrefix()
  • getEntityTablePrefix()
  • getDefaultAttributeSetId()
  • getEntityTypeId()
  • getEntityTypeCode()
  • getAttributeModel()
  • getEntity()
  • getEntityAttributeCollection()