]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/config/doctrine/ArticleTranslation.orm.yml
Fix faq and tos route name
[blogbundle] / Resources / config / doctrine / ArticleTranslation.orm.yml
1 Rapsys\BlogBundle\Entity\ArticleTranslation:
2 type: entity
3 repositoryClass: Rapsys\BlogBundle\Repository\ArticleTranslationRepository
4 table: articles_translations
5 id:
6 article_id:
7 type: integer
8 options:
9 unsigned: true
10 locale:
11 type: string
12 length: 5
13 fields:
14 body:
15 type: text
16 nullable: true
17 description:
18 type: text
19 nullable: true
20 slug:
21 type: string
22 length: 128
23 nullable: true
24 title:
25 type: string
26 length: 128
27 nullable: true
28 created:
29 type: datetime
30 updated:
31 type: datetime
32 manyToOne:
33 article:
34 targetEntity: Rapsys\BlogBundle\Entity\Article
35 inversedBy: article_translations
36 joinColumn:
37 nullable: false
38 uniqueConstraints:
39 locale_slug:
40 columns: [ locale, slug ]
41 lifecycleCallbacks:
42 preUpdate: ['preUpdate']