]>
Raphaƫl G. Git Repositories - airbundle/blob - config/doctrine/Location.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 name =
"Rapsys\AirBundle\Entity\Location" repository-class =
"Rapsys\AirBundle\Repository\LocationRepository" table =
"locations" >
4 <id name =
"id" type =
"integer" column =
"id" >
5 <generator strategy =
"AUTO" />
7 <option name =
"unsigned" > true
</option>
10 <field name =
"title" type =
"string" length =
"32" />
11 <field name =
"description" type =
"text" nullable =
"true" />
12 <field name =
"address" type =
"string" length =
"32" />
13 <field name =
"zipcode" type =
"string" length =
"5" nullable =
"true" />
14 <field name =
"city" type =
"string" length =
"64" />
15 <field name =
"latitude" type =
"decimal" precision =
"8" scale =
"6" />
16 <field name =
"longitude" type =
"decimal" precision =
"9" scale =
"6" />
17 <field name =
"indoor" type =
"boolean" />
18 <field name =
"hotspot" type =
"boolean" />
19 <field name =
"created" type =
"datetime" />
20 <field name =
"updated" type =
"datetime" />
21 <one-to-many field =
"sessions" target-entity =
"Rapsys\AirBundle\Entity\Session" mapped-by =
"location" fetch =
"LAZY" />
22 <one-to-many field =
"snippets" target-entity =
"Rapsys\AirBundle\Entity\Snippet" mapped-by =
"location" fetch =
"LAZY" />
23 <many-to-many field =
"users" target-entity =
"Rapsys\AirBundle\Entity\User" mapped-by =
"locations" fetch =
"LAZY" />
25 <index name =
"zipcode" columns =
"zipcode" />
26 <index name =
"city_zipcode2" columns =
"city,zipcode" >
28 <!--#XXX: see https://github.com/doctrine/dbal/pull/2412 and https://stackoverflow.com/questions/32539973/configuring-index-text-length-mysql-in-doctrine-->
29 <option name =
"lengths" > NULL,
2 </option>
34 <lifecycle-callback type =
"preUpdate" method =
"preUpdate" />
35 </lifecycle-callbacks>