]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/Location.orm.yml
New page title, section and description schema
[airbundle] / Resources / config / doctrine / Location.orm.yml
1 Rapsys\AirBundle\Entity\Location:
2 type: entity
3 repositoryClass: Rapsys\AirBundle\Repository\LocationRepository
4 table: locations
5 id:
6 id:
7 type: integer
8 generator:
9 strategy: AUTO
10 options:
11 unsigned: true
12 fields:
13 title:
14 type: string
15 length: 32
16 address:
17 type: string
18 length: 32
19 zipcode:
20 type: string
21 length: 5
22 city:
23 type: string
24 length: 64
25 latitude:
26 type: decimal
27 precision: 8
28 scale: 6
29 longitude:
30 type: decimal
31 precision: 9
32 scale: 6
33 hotspot:
34 type: boolean
35 created:
36 type: datetime
37 updated:
38 type: datetime
39 oneToMany:
40 sessions:
41 targetEntity: Rapsys\AirBundle\Entity\Session
42 mappedBy: location
43 snippets:
44 targetEntity: Rapsys\AirBundle\Entity\Snippet
45 mappedBy: location
46 manyToMany:
47 users:
48 targetEntity: Rapsys\AirBundle\Entity\User
49 mappedBy: locations
50 indexes:
51 #XXX: used in SessionRepository::(findAllPendingDailyWeather|findAllPendingHourlyWeather)
52 zipcode:
53 columns: [ zipcode ]
54 lifecycleCallbacks:
55 preUpdate: ['preUpdate']