You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.8 KiB
40 lines
1.8 KiB
<?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\EventBattle" repository-class="App\Repository\EventBattleRepository">
|
|
<id name="event" association-key="true" />
|
|
<id name="event_battle_id" type="integer" />
|
|
|
|
<field name="value" type="json" />
|
|
|
|
<many-to-one field="event" target-entity="Event" inversed-by="battles">
|
|
<join-column on-delete="CASCADE" />
|
|
</many-to-one>
|
|
|
|
<many-to-many field="heroes" target-entity="EventHero">
|
|
<join-table name="event_battle_hero">
|
|
<join-columns>
|
|
<join-column name="event_id" referenced-column-name="event_id" on-delete="CASCADE"/>
|
|
<join-column name="event_battle_id" referenced-column-name="event_battle_id" on-delete="CASCADE"/>
|
|
</join-columns>
|
|
<inverse-join-columns>
|
|
<join-column name="event_id" referenced-column-name="event_id" on-delete="CASCADE" />
|
|
<join-column name="event_hero_id" referenced-column-name="event_hero_id" on-delete="CASCADE" />
|
|
</inverse-join-columns>
|
|
</join-table>
|
|
</many-to-many>
|
|
<many-to-one field="winningTeam" target-entity="EventTeam">
|
|
<join-columns>
|
|
<join-column name="event_id" referenced-column-name="event_id" on-delete="CASCADE" />
|
|
<join-column name="winning_team_id" referenced-column-name="event_team_id" on-delete="CASCADE" />
|
|
</join-columns>
|
|
</many-to-one>
|
|
|
|
</entity>
|
|
|
|
|
|
</doctrine-mapping>
|