mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-09 22:47:58 +00:00
make search keywords case insensitive
This commit is contained in:
parent
a285aa3158
commit
d0096cbfe2
@ -76,6 +76,8 @@ class TorrentRepository extends ServiceEntityRepository
|
|||||||
|
|
||||||
foreach ($keywords as $i => $keyword)
|
foreach ($keywords as $i => $keyword)
|
||||||
{
|
{
|
||||||
|
$keyword = mb_strtolower($keyword); // all keywords stored in lowercase
|
||||||
|
|
||||||
$orX->add("t.keywords LIKE :keyword{$i}");
|
$orX->add("t.keywords LIKE :keyword{$i}");
|
||||||
$query->setParameter(":keyword{$i}", "%{$keyword}%");
|
$query->setParameter(":keyword{$i}", "%{$keyword}%");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user