From e970a55f24318ec5dd8d6865a4ed0a12568b7750 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 6 Nov 2017 05:24:19 +0300 Subject: [PATCH] Trying to fix #40. --- .../PointToolsBundle/Repository/Blogs/TagRepository.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/TagRepository.php b/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/TagRepository.php index 18a72b9..b28c410 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/TagRepository.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/TagRepository.php @@ -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() ; }