]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/Session.orm.yaml
Cleanup
[airbundle] / Resources / config / doctrine / Session.orm.yaml
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 end:
19 type: time
20 nullable: true
21 created:
22 type: datetime
23 updated:
24 type: datetime
25 oneToOne:
26 application:
27 targetEntity: Rapsys\AirBundle\Entity\Application
28 manyToOne:
29 location:
30 targetEntity: Rapsys\AirBundle\Entity\Location
31 inversedBy: sessions
32 slot:
33 targetEntity: Rapsys\AirBundle\Entity\Slot
34 inversedBy: sessions
35 oneToMany:
36 applications:
37 targetEntity: Rapsys\AirBundle\Entity\Application
38 mappedBy: session
39 uniqueConstraints:
40 date_location_slot:
41 columns: [ date, location_id, slot_id ]