]>
Raphaƫl G. Git Repositories - airbundle/blob - config/doctrine/Dance.orm.xml
1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <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 https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
3 <entity name=
"Rapsys\AirBundle\Entity\Dance" repository-class=
"Rapsys\AirBundle\Repository\DanceRepository" table=
"dances">
4 <id name=
"id" type=
"integer">
5 <generator strategy=
"AUTO" />
7 <option name=
"unsigned">true
</option>
10 <field name=
"name" type=
"string" length=
"32" />
11 <field name=
"type" type=
"string" length=
"32" />
12 <field name=
"created" type=
"datetime" />
13 <field name=
"updated" type=
"datetime" />
14 <one-to-many field=
"applications" target-entity=
"Rapsys\AirBundle\Entity\Application" mapped-by=
"dance" fetch=
"LAZY" />
15 <many-to-many field=
"users" target-entity=
"Rapsys\AirBundle\Entity\User" mapped-by=
"dances" fetch=
"LAZY" />
17 <unique-constraint name=
"name_type" columns=
"name,type" />
20 <lifecycle-callback type=
"preUpdate" method=
"preUpdate" />
21 </lifecycle-callbacks>