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