eav_entity_type: customer , customer_address, catalog_category, catalog_product, sales, invoice, creditmemo, shipment.spa
每个产品都是“catalog_product_entity”中的一行。Magento系统中全部的属性(不单单是商品)都存放在“eav_attribute”表中,而属性的值都放在相似下面的表中“catalog_product_entity_attribute_varchar”, “catalog_product_entity_attribute_decimal”, “catalog_product_entity_attribute_etc”。【译者注:若是你仔细观察上面这幅数据表结构图,你会发现明显少了一张表,和“entity_type”有关。由于这里有“entity_type_id”出现,但却没有定义这个属性的表。这个表在Magneto中叫作“eav_entity_type”。因为EAV模型中全部的模型数据都混在一套数据表中了,实体类型(entity_type)就是用来把不一样的模型区别开来的属性。假如咱们要找出系统中全部的产品数据,那么Magento先经过“eav_entity_type”表得到产品模型的“entity_type_id”,而后再经过上面这幅图的关系来拿到全部的数据。
】ip