]>
Raphaƫl G. Git Repositories - blogbundle/blob - config/doctrine/Keyword.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\KeywordRepository" name=
"Rapsys\BlogBundle\Entity\Keyword" table=
"keywords">
4 <id name=
"id" type=
"integer" column=
"id">
5 <generator strategy=
"IDENTITY"/>
7 <field name=
"created" type=
"datetime" column=
"created"/>
8 <field name=
"updated" type=
"datetime" column=
"updated"/>
9 <one-to-many field=
"keyword_translations" target-entity=
"Rapsys\BlogBundle\Entity\KeywordTranslation" mapped-by=
"keyword" fetch=
"LAZY"/>
10 <many-to-many field=
"articles" target-entity=
"Rapsys\BlogBundle\Entity\Article" mapped-by=
"keywords" fetch=
"LAZY"/>
12 <lifecycle-callback type=
"preUpdate" method=
"preUpdate"/>
13 </lifecycle-callbacks>