]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/Snippet.orm.yml
85253f3232a182c8d28cc598ae9e96f208d051c7
[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 class:
19 type: text
20 nullable: true
21 contact:
22 type: string
23 length: 254
24 nullable: true
25 donate:
26 type: string
27 length: 254
28 nullable: true
29 link:
30 type: string
31 length: 254
32 nullable: true
33 profile:
34 type: string
35 length: 254
36 nullable: true
37 created:
38 type: datetime
39 updated:
40 type: datetime
41 manyToOne:
42 location:
43 targetEntity: Rapsys\AirBundle\Entity\Location
44 inversedBy: snippets
45 user:
46 targetEntity: Rapsys\AirBundle\Entity\User
47 inversedBy: snippets
48 indexes:
49 #XXX: may be used in SnippetRepository::findByLocaleUserId
50 locale_user:
51 columns: [ locale, user_id ]
52 uniqueConstraints:
53 locale_location_user:
54 columns: [ locale, location_id, user_id ]
55 lifecycleCallbacks:
56 preUpdate: ['preUpdate']