]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/config/doctrine/Article.orm.yml
Add about page
[blogbundle] / Resources / config / doctrine / Article.orm.yml
1 Rapsys\BlogBundle\Entity\Article:
2 type: entity
3 repositoryClass: Rapsys\BlogBundle\Repository\ArticleRepository
4 table: articles
5 id:
6 id:
7 type: integer
8 generator:
9 strategy: AUTO
10 options:
11 unsigned: true
12 fields:
13 created:
14 type: datetime
15 updated:
16 type: datetime
17 manyToOne:
18 user:
19 targetEntity: Rapsys\BlogBundle\Entity\User
20 inversedBy: articles
21 manyToMany:
22 keywords:
23 targetEntity: Rapsys\BlogBundle\Entity\Keyword
24 inversedBy: articles
25 joinTable:
26 name: articles_keywords
27 oneToMany:
28 article_translations:
29 targetEntity: Rapsys\BlogBundle\Entity\ArticleTranslation
30 mappedBy: article
31 lifecycleCallbacks:
32 preUpdate: ['preUpdate']