]>
Raphaƫl G. Git Repositories - userbundle/blob - config/doctrine/Civility.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 <mapped-superclass name=
"Rapsys\UserBundle\Entity\Civility">
4 <id name=
"id" type=
"integer">
5 <generator strategy=
"AUTO" />
7 <option name=
"unsigned">true
</option>
10 <field name=
"title" type=
"string" length=
"16" />
11 <field name=
"created" type=
"datetime" />
12 <field name=
"updated" type=
"datetime" />
13 <one-to-many field=
"users" target-entity=
"Rapsys\UserBundle\Entity\User" mapped-by=
"civility" fetch=
"LAZY"/>
15 <lifecycle-callback type=
"preUpdate" method=
"preUpdate" />
16 </lifecycle-callbacks>