Created
April 2, 2018 01:19
-
-
Save bitwombat/7a759be2b5d4aff2ce863047c351fe58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | |
<entity repository-class="Model\Repository\CompetencySetRepository" name="Model\Entity\CompetencySet" table="competency_sets"> | |
<id name="id" type="integer" column="id"> | |
<generator strategy="IDENTITY"/> | |
</id> | |
<field name="name" type="string" column="name" precision="0" scale="0" nullable="false"/> | |
<field name="description" type="string" column="description" precision="0" scale="0" nullable="false"/> | |
<many-to-many field="competencies" target-entity="Model\Entity\Competency" fetch="LAZY"> | |
<join-table name="competencyset_competency"> | |
<join-columns> | |
<join-column name="competencyset_id" referenced-column-name="id" on-delete="CASCADE"/> | |
</join-columns> | |
<inverse-join-columns> | |
<join-column name="competency_id" referenced-column-name="id" on-delete="CASCADE"/> | |
</inverse-join-columns> | |
</join-table> | |
</many-to-many> | |
</entity> | |
</doctrine-mapping> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment