]>
Raphaƫl G. Git Repositories - airbundle/blob - config/doctrine/GoogleToken.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\GoogleToken" repository-class=
"Rapsys\AirBundle\Repository\GoogleTokenRepository" table=
"google_tokens">
4 <id name=
"id" type=
"integer">
5 <generator strategy=
"AUTO" />
7 <option name=
"unsigned">true
</option>
10 <field name=
"mail" type=
"string" length=
"254" />
11 <field name=
"access" type=
"string" length=
"2048" />
12 <field name=
"refresh" type=
"string" length=
"512" nullable=
"true" />
13 <field name=
"expired" type=
"datetime" />
14 <field name=
"created" type=
"datetime" />
15 <field name=
"updated" type=
"datetime" />
16 <one-to-many field=
"googleCalendars" target-entity=
"Rapsys\AirBundle\Entity\GoogleCalendar" mapped-by=
"googleToken" fetch=
"LAZY" />
17 <many-to-one field=
"user" target-entity=
"Rapsys\AirBundle\Entity\User" inversed-by=
"googleTokens" fetch=
"LAZY">
19 <join-column name=
"user_id" referenced-column-name=
"id" nullable=
"false" />
23 <unique-constraint name=
"user_mail" columns=
"user_id,mail" />
26 <lifecycle-callback type=
"preUpdate" method=
"preUpdate" />
27 </lifecycle-callbacks>