Trying to fix #40.
This commit is contained in:
parent
8f8f6973c0
commit
e970a55f24
|
@ -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()
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue