]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/User.orm.yml
New page scheme
[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 phone:
7 type: string
8 length: 16
9 nullable: true
10 oneToMany:
11 applications:
12 targetEntity: Rapsys\AirBundle\Entity\Application
13 mappedBy: user
14 snippets:
15 targetEntity: Rapsys\AirBundle\Entity\Snippet
16 mappedBy: user
17 manyToMany:
18 subscribers:
19 targetEntity: Rapsys\AirBundle\Entity\User
20 inversedBy: subscriptions
21 joinTable:
22 name: users_subscriptions
23 joinColumns:
24 id:
25 name: user_id
26 inverseJoinColumns:
27 id:
28 name: subscriber_id
29 subscriptions:
30 targetEntity: Rapsys\AirBundle\Entity\User
31 mappedBy: subscribers
32 locations:
33 targetEntity: Rapsys\AirBundle\Entity\Location
34 inversedBy: users
35 joinTable:
36 name: users_locations
37 joinColumns:
38 id:
39 name: user_id
40 inverseJoinColumns:
41 id:
42 name: location_id
43 # manyToMany:
44 # groups:
45 # targetEntity: Group
46 # inversedBy: users
47 # joinTable:
48 # name: groups_users
49 associationOverride:
50 groups:
51 joinTable:
52 name: users_groups
53 joinColumns:
54 id:
55 name: user_id
56 inverseJoinColumns:
57 id:
58 name: group_id