]>
Raphaƫl G. Git Repositories - blogbundle/blob - config/doctrine/ArticleTranslation.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 repository-class=
"Rapsys\BlogBundle\Repository\ArticleTranslationRepository" name=
"Rapsys\BlogBundle\Entity\ArticleTranslation" table=
"articles_translations">
5 <unique-constraint name=
"locale_slug" columns=
"locale,slug"/>
7 <id name=
"article_id" type=
"integer" column=
"article_id"/>
8 <id name=
"locale" type=
"string" column=
"locale" length=
"5"/>
9 <field name=
"body" type=
"text" column=
"body" nullable=
"true"/>
10 <field name=
"description" type=
"text" column=
"description" nullable=
"true"/>
11 <field name=
"slug" type=
"string" column=
"slug" length=
"128" nullable=
"true"/>
12 <field name=
"title" type=
"string" column=
"title" length=
"128" nullable=
"true"/>
13 <field name=
"created" type=
"datetime" column=
"created"/>
14 <field name=
"updated" type=
"datetime" column=
"updated"/>
15 <many-to-one field=
"article" target-entity=
"Rapsys\BlogBundle\Entity\Article" inversed-by=
"article_translations" fetch=
"LAZY">
17 <join-column name=
"article_id" referenced-column-name=
"id" nullable=
"false"/>
21 <lifecycle-callback type=
"preUpdate" method=
"preUpdate"/>
22 </lifecycle-callbacks>