]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/GoogleToken.orm.yml
Fix location user add/remove from inverse side
[airbundle] / Resources / config / doctrine / GoogleToken.orm.yml
1 Rapsys\AirBundle\Entity\GoogleToken:
2 type: entity
3 #repositoryClass: Rapsys\AirBundle\Repository\GoogleTokenRepository
4 table: google_tokens
5 id:
6 id:
7 type: integer
8 generator:
9 strategy: AUTO
10 options:
11 unsigned: true
12 fields:
13 mail:
14 type: string
15 length: 254
16 access:
17 type: string
18 length: 2048
19 refresh:
20 type: string
21 length: 512
22 nullable: true
23 expired:
24 type: datetime
25 created:
26 type: datetime
27 updated:
28 type: datetime
29 manyToOne:
30 user:
31 targetEntity: Rapsys\AirBundle\Entity\User
32 inversedBy: googleTokens
33 joinColumn:
34 nullable: false
35 oneToMany:
36 googleCalendars:
37 targetEntity: Rapsys\AirBundle\Entity\GoogleCalendar
38 mappedBy: googleToken
39 uniqueConstraints:
40 user_mail:
41 columns: [ user_id, mail ]
42 lifecycleCallbacks:
43 preUpdate: ['preUpdate']