]> Raphaƫl G. Git Repositories - userbundle/blob - Resources/config/doctrine/User.orm.yml
7d51e1cd7cf40c5686ec40159a545340dec764f1
[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 disabled:
32 type: boolean
33 options:
34 default: false
35 created:
36 type: datetime
37 updated:
38 type: datetime
39 manyToOne:
40 civility:
41 targetEntity: Civility
42 inversedBy: users
43 manyToMany:
44 groups:
45 targetEntity: Group
46 inversedBy: users
47 #see if usefull: https://stackoverflow.com/questions/34523699/how-to-extend-doctrine-entity-in-another-bundle
48 # joinTable:
49 # name: groups_users
50 lifecycleCallbacks:
51 preUpdate: ['preUpdate']