What are entities in Magento 2?

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


Well, englishly speaking, every object is an entity right ?

But I reckon you're referring to an entity as the EAV (Entity - Attribute - Value) implementation of Magento.

So to answer your question, I reckon you should have a look at the eav_entity_type table which lists the following entities with their entity model, table and attribute model:

  • 1: Customer
  • 2: Customer Address
  • 3: Category
  • 4: Product
  • 5: Order
  • 6: Invoice
  • 7: Credit Memo
  • 8: Shipment

I just notice it (and if it helps to someone)

The table eav_entity_type is where magento2 entities are, for example:

mysql> SELECT entity_type_id, entity_type_code FROM eav_entity_type;
+----------------+------------------+
| entity_type_id | entity_type_code |
+----------------+------------------+
|              3 | catalog_category |
|              4 | catalog_product  |
|              7 | creditmemo       |
|              1 | customer         |
|              2 | customer_address |
|              6 | invoice          |
|              5 | order            |
|              8 | shipment         |
+----------------+------------------+
8 rows in set (0,00 sec)