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