]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/doctrine/User.orm.yml
491ae32ee2ed844d59413dbba1f8d5f86d995c4b
[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 # links:
12 # targetEntity: Rapsys\AirBundle\Entity\Link
13 # mappedBy: user
14 applications:
15 targetEntity: Rapsys\AirBundle\Entity\Application
16 mappedBy: user
17 snippets:
18 targetEntity: Rapsys\AirBundle\Entity\Snippet
19 mappedBy: user
20 manyToMany:
21 subscribers:
22 targetEntity: Rapsys\AirBundle\Entity\User
23 inversedBy: subscriptions
24 joinTable:
25 name: subscriptions
26 joinColumns:
27 id:
28 name: user_id
29 inverseJoinColumns:
30 id:
31 name: subscriber_id
32 subscriptions:
33 targetEntity: Rapsys\AirBundle\Entity\User
34 mappedBy: subscribers
35 # manyToMany:
36 # groups:
37 # targetEntity: Group
38 # inversedBy: users
39 # joinTable:
40 # name: groups_users
41 associationOverride:
42 groups:
43 joinTable:
44 name: groups_users
45 joinColumns:
46 id:
47 name: user_id
48 inverseJoinColumns:
49 id:
50 name: group_id