Magento2 – Understanding Entities in Magento 2

databaseeavmagento-2.0magento-2.0.4magento2

Entities in Magento 2 are like:

  • Product is an entity?

  • Order/Sale is an entity?

  • Customer/Users/Clients is an entity?

  • etc??

Where can I find a list of all entities?
Are they declarated in the DB?

For example in eav_attribute table I can see a column entity_type_id that in a default Magento2 installation goes from 1 to 4, these number represents entities?

PD Taking in mind that eav_entity is empty in a default installation

Best Answer

The eav_attribute table's column entity_type_id is mapped to the eav_entity_type table, you can see the entities there.

enter image description here

Related Topic