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:
parent
7ef76932d4
commit
1b7dc1098c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue