]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/Snippet.orm.yml
19db3499881f03d2f842498f65757a590ded9b1e
[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 hat:
31 type: boolean
32 nullable: true
33 options:
34 default: true
35 contact:
36 type: string
37 length: 254
38 nullable: true
39 donate:
40 type: string
41 length: 254
42 nullable: true
43 link:
44 type: string
45 length: 254
46 nullable: true
47 profile:
48 type: string
49 length: 254
50 nullable: true
51 created:
52 type: datetime
53 updated:
54 type: datetime
55 manyToOne:
56 location:
57 targetEntity: Rapsys\AirBundle\Entity\Location
58 inversedBy: snippets
59 user:
60 targetEntity: Rapsys\AirBundle\Entity\User
61 inversedBy: snippets
62 indexes:
63 #XXX: may be used in SnippetRepository::findByLocaleUserId
64 locale_user:
65 columns: [ locale, user_id ]
66 uniqueConstraints:
67 locale_location_user:
68 columns: [ locale, location_id, user_id ]
69 lifecycleCallbacks:
70 preUpdate: ['preUpdate']