Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Nov 3, 2021
1 parent 6b3afb7 commit 9fce8fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/LdapUserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ protected function newModelQuery($model = null)

// We will ensure our object GUID attribute is always selected
// along will all attributes. Otherwise, if the object GUID
// attribute is virtual, it may not be returned.
return $query->select(
array_unique(array_merge(['*', $model->getGuidKey()], $query->getSelects()))
);
// attribute is virtual, it may not be returned in results.
$selects = array_merge(['*', $model->getGuidKey()], $query->getSelects());

return $query->select(array_unique($selects));
}
}

0 comments on commit 9fce8fd

Please sign in to comment.