]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/config/doctrine/ArticleTranslation.orm.yml
Switch to custom stylesheet and javascript twig extension
[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 language_id:
11 type: smallint
12 options:
13 unsigned: true
14 fields:
15 slug:
16 type: string
17 length: 128
18 title:
19 type: string
20 length: 128
21 description:
22 type: text
23 body:
24 type: text
25 created:
26 type: datetime
27 updated:
28 type: datetime
29 manyToOne:
30 article:
31 targetEntity: Rapsys\BlogBundle\Entity\Article
32 inversedBy: article_translations
33 language:
34 targetEntity: Rapsys\BlogBundle\Entity\Language
35 inversedBy: article_translations
36 uniqueConstraints:
37 slug_language:
38 columns: [ slug, language_id ]