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