分类
Magento PHP

magento2 保存sales_order同时保存 sales_order_grid

/etc/di.xml

<virtualType name="Magento\Sales\Model\ResourceModel\Order\Grid" type="Magento\Sales\Model\ResourceModel\Grid">
    <arguments>
        <argument name="columns" xsi:type="array">
            <item name="reviewer" xsi:type="string">sales_order.reviewer</item>
        </argument>
    </arguments>
</virtualType>