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

<!--

 This file is part of the Sylius package.

 (c) Paweł Jędrzejewski

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

-->

<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping">

    <entity name="Sylius\Component\Product\Model\ProductAssociation">
        <many-to-one field="product" target-entity="Sylius\Component\Product\Model\Product">
            <join-column name="associated_product_id" referenced-column-name="id" />
        </many-to-one>
    </entity>

</doctrine-mapping>

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

<!--

 This file is part of the Sylius package.

 (c) Paweł Jędrzejewski

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

-->

<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping">

    <entity name="Sylius\Component\Product\Model\ProductAssociation">
        <many-to-one field="product" target-entity="Sylius\Component\Product\Model\Product">
            <join-column name="associated_product_id" referenced-column-name="id" on-delete="CASCADE" />
        </many-to-one>
    </entity>

</doctrine-mapping>

Allow to remove product without problems.
Allow to remove product without problems.
