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