This commit is contained in:
2022-05-13 16:05:38 +02:00
parent 2a5bb28210
commit 89a700ff61
3 changed files with 48 additions and 49 deletions

View File

@@ -98,7 +98,7 @@ final class UserRepository implements ObjectRepository
}
foreach ($orderBy as $field => $order) {
$qb->addOrderBy('u.'.$field, $order);
$qb->addOrderBy('u.' . $field, $order);
}
return $qb->getQuery()->getResult();
@@ -186,7 +186,6 @@ final class UserRepository implements ObjectRepository
->add($qb->expr()->like('u.usernameCanonical', 'CONCAT(\'%\', LOWER(UNACCENT(:pattern)), \'%\')'))
->add($qb->expr()->like('u.emailCanonical', 'CONCAT(\'%\', LOWER(UNACCENT(:pattern)), \'%\')'));
$qb
->where($searchByPattern)
->setParameter('pattern', $pattern);