DbUserGroupBackend: Use LEFT JOIN to join the group_membership table

Fixes the issue that groups are not found if they do not have any members
even though they meet the where clause
This commit is contained in:
Johannes Meyer 2015-10-16 13:10:39 +02:00
parent 7ef76932d4
commit 1b7dc1098c
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa
*/
protected function joinGroupMembership(RepositoryQuery $query)
{
$query->getQuery()->join(
$query->getQuery()->joinLeft(
$this->requireTable('group_membership'),
'g.id = gm.group_id',
array()