]> Raphaƫl G. Git Repositories - userbundle/blob - Resources/config/doctrine/User.orm.yml
Remove pseudonym and slug
[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 forename:
16 type: string
17 length: 32
18 surname:
19 type: string
20 length: 32
21 password:
22 type: string
23 length: 60
24 active:
25 type: boolean
26 options:
27 default: true
28 disabled:
29 type: boolean
30 options:
31 default: false
32 created:
33 type: datetime
34 updated:
35 type: datetime
36 manyToOne:
37 civility:
38 targetEntity: Civility
39 inversedBy: users
40 manyToMany:
41 groups:
42 targetEntity: Group
43 inversedBy: users
44 #see if usefull: https://stackoverflow.com/questions/34523699/how-to-extend-doctrine-entity-in-another-bundle
45 # joinTable:
46 # name: groups_users
47 lifecycleCallbacks:
48 preUpdate: ['preUpdate']