bug fix : to lower search

This commit is contained in:
2019-07-17 11:13:52 +02:00
parent 922f526ddd
commit f1e23410d4
@@ -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 . '%')
;
}