<?xml version="1.0" encoding="UTF-8"?>

<!--

 This file is part of the Sylius package.

 (c) Sylius Sp. z o.o.

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
                                            http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">

    <mapped-superclass name="Sylius\Component\Inventory\Model\InventoryUnit">
        <field name="inventoryState" fieldName="inventoryState" type="string" />

        <reference-one fieldName="stockable" target-document="Sylius\Component\Inventory\Model\StockableInterface" />
    </mapped-superclass>

</doctrine-mongo-mapping>
