<?xml version="1.0"?>
<!--
/**
 * Copyright © Ulmod. All rights reserved.
 * See LICENSE.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Ulmod\OrderComment\Api\Data\OrderCommentInterface"
             	type="Ulmod\OrderComment\Model\Data\OrderComment" />
    <preference for="Ulmod\OrderComment\Api\OrderCommentManagementInterface"
            	type="Ulmod\OrderComment\Model\OrderCommentManagement" />
    <preference for="Ulmod\OrderComment\Api\GuestOrderCommentManagementInterface"
             	type="Ulmod\OrderComment\Model\GuestOrderCommentManagement" />    
    <virtualType name="Magento\Sales\Model\ResourceModel\Order\Grid">
        <arguments>
            <argument name="columns" xsi:type="array">
                <item name="um_order_comment" 
				      xsi:type="string">sales_order.um_order_comment</item>
            </argument>
        </arguments>
    </virtualType>
</config>