]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/User.orm.yml
Cleanup
[airbundle] / Resources / config / doctrine / User.orm.yml
1 Rapsys\AirBundle\Entity\User:
2 type: entity
3 repositoryClass: Rapsys\AirBundle\Repository\UserRepository
4 table: users
5 fields:
6 pseudonym:
7 type: string
8 length: 32
9 nullable: true
10 phone:
11 type: string
12 length: 16
13 nullable: true
14 slug:
15 type: string
16 unique: true
17 length: 32
18 nullable: true
19 oneToMany:
20 applications:
21 targetEntity: Rapsys\AirBundle\Entity\Application
22 mappedBy: user
23 snippets:
24 targetEntity: Rapsys\AirBundle\Entity\Snippet
25 mappedBy: user
26 manyToMany:
27 dances:
28 targetEntity: Rapsys\AirBundle\Entity\Dance
29 inversedBy: users
30 joinTable:
31 name: users_dances
32 joinColumns:
33 id:
34 name: user_id
35 inverseJoinColumns:
36 id:
37 name: dance_id
38 subscribers:
39 targetEntity: Rapsys\AirBundle\Entity\User
40 inversedBy: subscriptions
41 joinTable:
42 name: users_subscriptions
43 joinColumns:
44 id:
45 name: user_id
46 inverseJoinColumns:
47 id:
48 name: subscriber_id
49 subscriptions:
50 targetEntity: Rapsys\AirBundle\Entity\User
51 mappedBy: subscribers
52 locations:
53 targetEntity: Rapsys\AirBundle\Entity\Location
54 inversedBy: users
55 joinTable:
56 name: users_locations
57 joinColumns:
58 id:
59 name: user_id
60 inverseJoinColumns:
61 id:
62 name: location_id
63 # manyToMany:
64 # groups:
65 # targetEntity: Group
66 # inversedBy: users
67 # joinTable:
68 # name: groups_users
69 associationOverride:
70 groups:
71 joinTable:
72 name: users_groups
73 joinColumns:
74 id:
75 name: user_id
76 inverseJoinColumns:
77 id:
78 name: group_id