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.
29 lines
1.0 KiB
29 lines
1.0 KiB
4 years ago
|
<?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">
|
||
|
<id name="event" association-key="true" />
|
||
|
<id name="eid" type="integer" />
|
||
|
|
||
|
<embedded name="skills" class="Skillz" />
|
||
|
|
||
|
<field name="name" type="string" length="32" unique="true" />
|
||
|
<field name="team" type="integer" />
|
||
|
|
||
|
<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" inversed-by="heroes">
|
||
|
<join-column on-delete="CASCADE" />
|
||
|
</many-to-one>
|
||
|
|
||
|
</entity>
|
||
|
</doctrine-mapping>
|