]>
Raphaƫl G. Git Repositories - blogbundle/blob - config/doctrine/UserTranslation.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\BlogBundle\Entity\UserTranslation" table=
"users_translations">
4 <id name=
"user_id" type=
"integer" column=
"user_id"/>
5 <id name=
"locale" type=
"string" column=
"locale" length=
"5"/>
6 <field name=
"description" type=
"text" column=
"description" nullable=
"true"/>
7 <field name=
"created" type=
"datetime" column=
"created"/>
8 <field name=
"updated" type=
"datetime" column=
"updated"/>
9 <many-to-one field=
"user" target-entity=
"Rapsys\BlogBundle\Entity\User" inversed-by=
"user_translations" fetch=
"LAZY">
11 <join-column name=
"user_id" referenced-column-name=
"id" nullable=
"false"/>
15 <lifecycle-callback type=
"preUpdate" method=
"preUpdate"/>
16 </lifecycle-callbacks>