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'); $qb = $this->createQueryBuilder('t');
return $qb return $qb
->where($qb->expr()->eq( ->where('LOWER(t.text) = :text')
$qb->expr()->lower('t.text'), ->setParameter('text', mb_strtolower($text))
$qb->expr()->lower(':text')
))
->setParameter('text', $text)
->getQuery()->getOneOrNullResult() ->getQuery()->getOneOrNullResult()
; ;
} }