Trying to fix #40.

This commit is contained in:
Alexey Skobkin 2017-11-06 05:24:19 +03:00
parent 8f8f6973c0
commit e970a55f24
1 changed files with 2 additions and 5 deletions

View File

@ -16,11 +16,8 @@ class TagRepository extends EntityRepository
{
$qb = $this->createQueryBuilder('t');
return $qb
->where($qb->expr()->eq(
$qb->expr()->lower('t.text'),
$qb->expr()->lower(':text')
))
->setParameter('text', $text)
->where('LOWER(t.text) = :text')
->setParameter('text', mb_strtolower($text))
->getQuery()->getOneOrNullResult()
;
}