<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping
    xmlns="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping
    https://github.com/doctrine/phpcr-odm/raw/master/doctrine-phpcr-odm-mapping.xsd"
    >
    <!--
         This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends )

         References :
            xsd                  : https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd
            xml mapping          : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/xml-mapping/en
            association mapping  : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en
    -->

    <document name="App\Application\Sonata\MediaBundle\PHPCR\GalleryHasMedia"
              repository-class="App\Application\Sonata\MediaBundle\PHPCR\GalleryHasMediaRepository">

        <id name="id">
            <generator strategy="REPOSITORY" />
        </id>

        <reference-many name="media" target-document="App\Application\Sonata\MediaBundle\PHPCR\Media" />

    </document>

</doctrine-mapping>
