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.
animegame/config/orm/Event.orm.xml

30 lines
1.1 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\Event" repository-class="App\Repository\EventRepository">
<id name="id" type="integer">
<generator strategy="AUTO" />
</id>
<field name="type" type="integer" nullable="false" />
<field name="version" type="integer" nullable="false" />
<one-to-many field="battles" mapped-by="event" target-entity="EventBattle">
<cascade>
<cascade-persist />
<cascade-merge />
</cascade>
</one-to-many>
<one-to-many field="teams" mapped-by="event" target-entity="EventTeam">
<cascade>
<cascade-persist />
<cascade-merge />
</cascade>
</one-to-many>
</entity>
</doctrine-mapping>