]> Raphaƫl G. Git Repositories - userbundle/blob - Resources/config/doctrine/User.orm.yml
29755a580c9de3bc34def121df0f85eeb99f83c1
[userbundle] / Resources / config / doctrine / User.orm.yml
1 Rapsys\UserBundle\Entity\User:
2 type: mappedSuperclass
3 id:
4 id:
5 type: integer
6 generator:
7 strategy: AUTO
8 options:
9 unsigned: true
10 fields:
11 mail:
12 type: string
13 unique: true
14 length: 254
15 pseudonym:
16 type: string
17 length: 32
18 forename:
19 type: string
20 length: 32
21 surname:
22 type: string
23 length: 32
24 password:
25 type: string
26 length: 60
27 active:
28 type: boolean
29 options:
30 default: true
31 created:
32 type: datetime
33 updated:
34 type: datetime
35 manyToOne:
36 civility:
37 targetEntity: Civility
38 inversedBy: users
39 manyToMany:
40 groups:
41 targetEntity: Group
42 inversedBy: users
43 #see if usefull: https://stackoverflow.com/questions/34523699/how-to-extend-doctrine-entity-in-another-bundle
44 # joinTable:
45 # name: groups_users
46 lifecycleCallbacks:
47 preUpdate: ['preUpdate']