]>
Raphaƫl G. Git Repositories - airbundle/blob - config/doctrine/Session.orm.xml
1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <doctrine-mapping xmlns=
"http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance" xsi:
schemaLocation=
"http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
3 <entity repository-class=
"Rapsys\AirBundle\Repository\SessionRepository" name=
"Rapsys\AirBundle\Entity\Session" table=
"sessions">
4 <id name=
"id" type=
"integer" column=
"id">
5 <generator strategy=
"AUTO" />
7 <option name=
"unsigned">true
</option>
10 <field name=
"date" type=
"date" />
11 <field name=
"begin" type=
"time" nullable=
"true" />
12 <field name=
"length" type=
"time" nullable=
"true" />
13 <field name=
"premium" type=
"boolean" nullable=
"true" />
14 <field name=
"rainfall" type=
"float" nullable=
"true" />
15 <field name=
"rainrisk" type=
"float" nullable=
"true" />
16 <field name=
"realfeel" type=
"float" nullable=
"true" />
17 <field name=
"realfeelmin" type=
"float" nullable=
"true" />
18 <field name=
"realfeelmax" type=
"float" nullable=
"true" />
19 <field name=
"temperature" type=
"float" nullable=
"true" />
20 <field name=
"temperaturemin" type=
"float" nullable=
"true" />
21 <field name=
"temperaturemax" type=
"float" nullable=
"true" />
22 <field name=
"locked" type=
"datetime" nullable=
"true" />
23 <field name=
"created" type=
"datetime" />
24 <field name=
"updated" type=
"datetime" />
25 <many-to-one field=
"location" target-entity=
"Rapsys\AirBundle\Entity\Location" inversed-by=
"sessions" fetch=
"LAZY" />
26 <many-to-one field=
"slot" target-entity=
"Rapsys\AirBundle\Entity\Slot" inversed-by=
"sessions" fetch=
"LAZY" />
27 <one-to-many field=
"applications" target-entity=
"Rapsys\AirBundle\Entity\Application" mapped-by=
"session" fetch=
"LAZY" />
28 <one-to-one field=
"application" target-entity=
"Rapsys\AirBundle\Entity\Application" fetch=
"LAZY" />
32 targetEntity: Rapsys\AirBundle\Entity\Application
35 <!--XXX: used in SessionRepository::findAllByPeriodAsCalendarArray-->
36 <index name=
"date_location" columns=
"date,location_id" />
37 <!--XXX: used in SessionRepository::findAllPendingApplication-->
38 <index name=
"locked_date_begin_created" columns=
"locked,date,begin,created" />
39 <!--XXX: used in SessionRepository::findBestApplicationById(s3)-->
40 <index name=
"application_locked_date_begin_slot_created" columns=
"application_id,locked,date,begin,slot_id,created" />
41 <!--XXX: candidated in findAllPendingDailyWeather and findAllPendingHourlyWeather-->
42 <index name=
"location_date_begin_length_slot" columns=
"location_id,date,begin,length,slot_id" />
44 # #XXX: tried for SessionRepository::findBestApplicationById(s2)
45 # location_slot_application_locked_date_begin:
46 # columns: [ location_id, slot_id, application_id, locked, date ]
47 # #XXX: tried for SessionRepository::findBestApplicationById(s3)
48 # application_locked_date:
49 # columns: [ application_id, locked, date ]
50 # #XXX: tried for SessionRepository::findBestApplicationById(s4)
51 # location_application_locked_date:
52 # columns: [ location_id, application_id, locked, date ]
56 <unique-constraint name=
"date_location_slot" columns=
"date,location_id,slot_id" />
59 <lifecycle-callback type=
"preUpdate" method=
"preUpdate" />
60 </lifecycle-callbacks>