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