]> Raphaƫl G. Git Repositories - userbundle/blob - Resources/config/doctrine/User.orm.yml
Add user cache in framework cache pools
[userbundle] / Resources / config / doctrine / User.orm.yml
1 Rapsys\UserBundle\Entity\User:
2 type: mappedSuperclass
3 repositoryClass: Rapsys\UserBundle\Repository\UserRepository
4 # table: users
5 id:
6 id:
7 type: integer
8 generator:
9 strategy: AUTO
10 options:
11 unsigned: true
12 fields:
13 mail:
14 type: string
15 unique: true
16 length: 254
17 forename:
18 type: string
19 length: 32
20 nullable: true
21 surname:
22 type: string
23 length: 32
24 nullable: true
25 password:
26 type: string
27 length: 100
28 active:
29 type: boolean
30 options:
31 default: true
32 enable:
33 type: boolean
34 options:
35 default: true
36 created:
37 type: datetime
38 updated:
39 type: datetime
40 manyToOne:
41 civility:
42 targetEntity: Civility
43 inversedBy: users
44 manyToMany:
45 groups:
46 targetEntity: Group
47 inversedBy: users
48 #see if usefull: https://stackoverflow.com/questions/34523699/how-to-extend-doctrine-entity-in-another-bundle
49 # joinTable:
50 # name: users_groups
51 # joinColumns:
52 # id:
53 # name: user_id
54 # inverseJoinColumns:
55 # id:
56 # name: group_id
57 lifecycleCallbacks:
58 preUpdate: ['preUpdate']