DbUserGroupBackend: Group by group.id when joining group memberships
Prevents duplicate results in case a group has multiple members.
This commit is contained in:
parent
3a619eb8c7
commit
f7a8524dce
|
@ -254,7 +254,7 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa
|
|||
$this->requireTable('group_membership'),
|
||||
'g.id = gm.group_id',
|
||||
array()
|
||||
);
|
||||
)->group('g.id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue