是magento销售eav

Wei*_*ang 4 magento entity-attribute-value

通过检查销售模块的配置,sales_entity部分如下所示

<models>
<sales>
    <class>Mage_Sales_Model</class>
    <resourceModel>sales_resource</resourceModel>
</sales>
<sales_entity>
    <class>Mage_Sales_Model_Entity</class>
    <entities>
        <quote>
Run Code Online (Sandbox Code Playgroud)

而这些课程Mage_Sales_Model_Entity_xxx延伸Mage_Eav_Model_Entity_Abstract,表明销售/订单是EAV风格而不是扁平的.我还可以找到表"eav_entity_type"有很多与"订单"相关的记录.

但是,遗憾的EAV是,我仔细检查了代码,并不是最新的代码库(至少是v1.7).任何人都可以帮忙澄清一下吗?是EAV销售/订单deperecated?

Ole*_*nko 8

在最新版本的Magento(即1.6和1.7,之前不能说)中,销售实体属性不再存储在EAV属性值表中.Mage_Sales模块的资源模型将销售实体连接到平面表.

您还可以看到基本Sales模型类Mage_Sales_Model_Abstract扩展Mage_Core_Model_Abstract,并且基本Sales资源模型Mage_Sales_Model_Resource_Abstract扩展Mage_Core_Model_Resource_Db_Abstract- 这些模型都不是EAV模型或EAV资源模型.

您在表中找到的属性 - 实体元数据eav_entity_type类似于Catalog和Customer模块的EAV实体,但属性值存储系统不是EAV.

我想,您遇到的配置是为了向后兼容.

我已经对Magento的EAV系统进行了描述,您可能会觉得它很有趣:http://www.divisionlab.com/solvingmagento/magento-eav-system/