]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/Snippet.orm.yml
Remove Vote entity
[airbundle] / Resources / config / doctrine / Snippet.orm.yml
1 Rapsys\AirBundle\Entity\Snippet:
2 type: entity
3 repositoryClass: Rapsys\AirBundle\Repository\SnippetRepository
4 table: snippets
5 id:
6 id:
7 type: integer
8 generator:
9 strategy: AUTO
10 options:
11 unsigned: true
12 fields:
13 locale:
14 type: string
15 length: 2
16 description:
17 type: text
18 created:
19 type: datetime
20 updated:
21 type: datetime
22 manyToOne:
23 location:
24 targetEntity: Rapsys\AirBundle\Entity\Location
25 inversedBy: snippets
26 user:
27 targetEntity: Rapsys\AirBundle\Entity\User
28 inversedBy: snippets
29 indexes:
30 #XXX: may be used in SnippetRepository::findByLocaleUserId
31 locale_user:
32 columns: [ locale, user_id ]
33 uniqueConstraints:
34 locale_location_user:
35 columns: [ locale, location_id, user_id ]