2013-10-13 45 views
0

我注意到customer_address和客戶實體的Magento attribute_set_id存在差異。在customer_address_entity和customer_entity表中,attribute_set_id爲0.但是,在eav_attribute_set表中,沒有這種情況,其中attribute_set_id爲0.客戶實體和customer_address實體的正確attribute_set_id是什麼?

假設客戶實體的attribute_set_id是1,customer_address實體2的attribute_set_id是那是正確的?

attribute_set_id == 1 \\customer entity 
attribute_set_id == 2 \\customer_address entity 

回答

1

customer_entityattribute_set_id柱和customer_address_entity是無用的,因爲客戶和不會忽略只使用一個單一的屬性設置。
當檢索其中一個實體的屬性時,將使用eav_entity_type中的default_attribute_set_id(並且僅限於此)。

+0

雖然我有點同意你(這是我第一次想到的)。不過,我仍然很好奇爲什麼Magento會這麼做。 – user1576748

+0

@ user1576748。我也很好奇。最有可能的是它像許多其他的一樣未實現的功能。例如在覈心佈局文件中有這個標籤''。版本沒有價值...還有其他的。 – Marius