<commit_before><?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping
        xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
        xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                            http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

    <entity name="Ekyna\Bundle\CmsBundle\Entity\GalleryImage"
            table="cms_gallery_image">

        <id name="id" type="integer" column="id">
            <generator strategy="AUTO" />
        </id>

        <field name="position" type="integer" column="position">
            <gedmo:sortable-position />
        </field>

        <many-to-one target-entity="Ekyna\Bundle\CmsBundle\Entity\Image" field="image">
            <join-column name="image_id" referenced-column-name="id" nullable="false" on-delete="CASCADE" />
        </many-to-one>

        <many-to-one target-entity="Ekyna\Bundle\CmsBundle\Entity\Gallery" inversed-by="images" field="gallery" orphan-removal="true">
            <join-column name="gallery_id" referenced-column-name="id" nullable="true" on-delete="CASCADE" />
            <gedmo:sortable-group />
        </many-to-one>

    </entity>

</doctrine-mapping><commit_msg>Cascading gallery<commit_after><?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping
        xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
        xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                            http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

    <entity name="Ekyna\Bundle\CmsBundle\Entity\GalleryImage"
            table="cms_gallery_image">

        <id name="id" type="integer" column="id">
            <generator strategy="AUTO" />
        </id>

        <field name="position" type="integer" column="position">
            <gedmo:sortable-position />
        </field>

        <many-to-one target-entity="Ekyna\Bundle\CmsBundle\Entity\Image" field="image">
            <cascade>
                <cascade-persist />
                <cascade-merge />
                <cascade-detach />
                <cascade-refresh />
            </cascade>
            <join-column name="image_id" referenced-column-name="id" nullable="false" on-delete="CASCADE" />
        </many-to-one>

        <many-to-one target-entity="Ekyna\Bundle\CmsBundle\Entity\Gallery" inversed-by="images" field="gallery" orphan-removal="true">
            <join-column name="gallery_id" referenced-column-name="id" nullable="true" on-delete="CASCADE" />
            <gedmo:sortable-group />
        </many-to-one>

    </entity>

</doctrine-mapping>
{'fraction_non_alphanumeric': 0.16178474114441416, 'fraction_numerical': 0.005449591280653951, 'mean_word_length': 2.6125461254612548, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 2, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3512046', 'n_tokens_mistral': 961, 'n_tokens_neox': 910, 'n_words': 102}