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.
27 lines
1.0 KiB
27 lines
1.0 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\EventTeam" repository-class="App\Repository\EventTeamRepository">
|
|
<id name="event" association-key="true" />
|
|
<id name="event_team_id" type="integer" />
|
|
|
|
<field name="name" type="string" length="32" unique="true" />
|
|
|
|
<!-- TODO: many-to-one referencing clan (nullable) -->
|
|
|
|
<one-to-many field="heroes" mapped-by="team" target-entity="EventHero">
|
|
<cascade>
|
|
<cascade-persist />
|
|
<cascade-merge />
|
|
</cascade>
|
|
</one-to-many>
|
|
|
|
<many-to-one field="event" target-entity="Event" inversed-by="teams">
|
|
<join-column on-delete="CASCADE" />
|
|
</many-to-one>
|
|
|
|
</entity>
|
|
|
|
</doctrine-mapping> |