]>
Raphaƫl G. Git Repositories - blogbundle/blob - config/doctrine/KeywordTranslation.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\KeywordTranslationRepository" name=
"Rapsys\BlogBundle\Entity\KeywordTranslation" table=
"keywords_translations">
5 <unique-constraint name=
"locale_slug" columns=
"locale,slug"/>
7 <id name=
"keyword_id" type=
"integer" column=
"keyword_id"/>
8 <id name=
"locale" type=
"string" column=
"locale" length=
"5"/>
9 <field name=
"description" type=
"text" column=
"description" nullable=
"true"/>
10 <field name=
"slug" type=
"string" column=
"slug" length=
"128" nullable=
"true"/>
11 <field name=
"title" type=
"string" column=
"title" length=
"128" nullable=
"true"/>
12 <field name=
"created" type=
"datetime" column=
"created"/>
13 <field name=
"updated" type=
"datetime" column=
"updated"/>
14 <many-to-one field=
"keyword" target-entity=
"Rapsys\BlogBundle\Entity\Keyword" inversed-by=
"keyword_translations" fetch=
"LAZY">
16 <join-column name=
"keyword_id" referenced-column-name=
"id" nullable=
"false"/>
20 <lifecycle-callback type=
"preUpdate" method=
"preUpdate"/>
21 </lifecycle-callbacks>