|
|
|
<?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 ../../vendor/doctrine/orm/doctrine-mapping.xsd ">
|
|
|
|
|
|
|
|
<entity name="App\Entity\EventHero" repository-class="App\Repository\EventHeroRepository">
|
|
|
|
<id name="event" association-key="true" />
|
|
|
|
<id name="event_hero_id" type="integer" />
|
|
|
|
|
|
|
|
<embedded name="skills" class="Skillz" />
|
|
|
|
|
|
|
|
<field name="name" type="string" length="32" unique="true" />
|
|
|
|
|
|
|
|
<many-to-one field="user" target-entity="User">
|
|
|
|
<join-column on-delete="SET NULL" />
|
|
|
|
</many-to-one>
|
|
|
|
|
|
|
|
<many-to-one field="hero" target-entity="Hero">
|
|
|
|
<join-column on-delete="SET NULL" />
|
|
|
|
</many-to-one>
|
|
|
|
|
|
|
|
<many-to-one field="event" target-entity="Event">
|
|
|
|
<join-column on-delete="CASCADE" />
|
|
|
|
</many-to-one>
|
|
|
|
|
|
|
|
<many-to-one field="team" target-entity="EventTeam" inversed-by="heroes">
|
|
|
|
<join-columns>
|
|
|
|
<join-column name="event_id" referenced-column-name="event_id" on-delete="CASCADE "/>
|
|
|
|
<join-column name="event_team_id" referenced-column-name="event_team_id" on-delete="CASCADE" />
|
|
|
|
</join-columns>
|
|
|
|
</many-to-one>
|
|
|
|
|
|
|
|
</entity>
|
|
|
|
</doctrine-mapping>
|