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.
25 lines
956 B
25 lines
956 B
<?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\User" repository-class="App\Repository\UserRepository">
|
|
<id name="id" type="integer">
|
|
<generator strategy="AUTO" />
|
|
</id>
|
|
|
|
<field name="username" type="string" length="32" unique="true" />
|
|
<field name="password" />
|
|
<field name="apiToken" unique="true" nullable="true" />
|
|
<field name="roles" type="json" />
|
|
|
|
<one-to-many field="heroes" mapped-by="user" target-entity="Hero">
|
|
<cascade>
|
|
<cascade-persist />
|
|
<cascade-merge />
|
|
</cascade>
|
|
</one-to-many>
|
|
|
|
</entity>
|
|
</doctrine-mapping>
|