fix roleUser and roleTeam relations

This commit is contained in:
Taras Machyshyn
2013-12-27 11:10:48 +02:00
parent 2d8d654871
commit 94eaffe7a3
2 changed files with 5 additions and 3 deletions
@@ -17,7 +17,7 @@
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "EntityTeam"
"foreign": "roles"
}
},
"collection": {
@@ -11,11 +11,13 @@
"links": {
"users": {
"type": "hasMany",
"entity": "User"
"entity": "User",
"foreign": "teams"
},
"roles": {
"type": "hasMany",
"entity": "Role"
"entity": "Role",
"foreign": "teams"
}
},
"collection": {