bug fix : to lower search
This commit is contained in:
@@ -90,13 +90,13 @@ class CompanyRepository extends AbstractRepository
|
||||
if ($isEmphasis) {
|
||||
|
||||
$qb
|
||||
->where('c.emphasis = ?1')
|
||||
->andWhere('c.emphasis = ?1')
|
||||
->setParameter(1, (bool)$isEmphasis)
|
||||
->orderBy('c.emphasisOrder', 'DESC');
|
||||
}
|
||||
if ($term) {
|
||||
$qb
|
||||
->where('c.title LIKE ?2')
|
||||
->andWhere('LOWER(c.title) LIKE LOWER(?2)')
|
||||
->setParameter(2, '%' . $term . '%')
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user