]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/config/doctrine/KeywordTranslation.orm.yml
Add rapsys blog route config
[blogbundle] / Resources / config / doctrine / KeywordTranslation.orm.yml
1 Rapsys\BlogBundle\Entity\KeywordTranslation:
2 type: entity
3 repositoryClass: Rapsys\BlogBundle\Repository\KeywordTranslationRepository
4 table: keywords_translations
5 id:
6 keyword_id:
7 type: integer
8 options:
9 unsigned: true
10 locale:
11 type: string
12 length: 5
13 fields:
14 description:
15 type: text
16 nullable: true
17 slug:
18 type: string
19 length: 128
20 nullable: true
21 title:
22 type: string
23 length: 128
24 nullable: true
25 created:
26 type: datetime
27 updated:
28 type: datetime
29 manyToOne:
30 keyword:
31 targetEntity: Rapsys\BlogBundle\Entity\Keyword
32 inversedBy: keyword_translations
33 joinColumn:
34 nullable: false
35 uniqueConstraints:
36 locale_slug:
37 columns: [ locale, slug ]
38 lifecycleCallbacks:
39 preUpdate: ['preUpdate']