]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/Session.orm.yml
Inherit message before notice class
[airbundle] / Resources / config / doctrine / Session.orm.yml
1 Rapsys\AirBundle\Entity\Session:
2 type: entity
3 repositoryClass: Rapsys\AirBundle\Repository\SessionRepository
4 table: sessions
5 id:
6 id:
7 type: integer
8 generator:
9 strategy: AUTO
10 options:
11 unsigned: true
12 fields:
13 date:
14 type: date
15 begin:
16 type: time
17 nullable: true
18 length:
19 type: time
20 nullable: true
21 #The day score, 1 for sun-thu, 2 for fri-sat, +1 for high temperature, *-1 for bad weather
22 # score:
23 # type: smallint
24 # nullable: true
25 created:
26 type: datetime
27 updated:
28 type: datetime
29 oneToOne:
30 application:
31 targetEntity: Rapsys\AirBundle\Entity\Application
32 manyToOne:
33 location:
34 targetEntity: Rapsys\AirBundle\Entity\Location
35 inversedBy: sessions
36 slot:
37 targetEntity: Rapsys\AirBundle\Entity\Slot
38 inversedBy: sessions
39 oneToMany:
40 applications:
41 targetEntity: Rapsys\AirBundle\Entity\Application
42 mappedBy: session
43 uniqueConstraints:
44 date_location_slot:
45 columns: [ date, location_id, slot_id ]