Skip to content

Commit

Permalink
FIX: Case insensitive searching
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Schmidt committed Sep 5, 2018
1 parent 5f615e8 commit 169d9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/PostNodeDataRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function sortPosts(QueryBuilder &$queryBuilder)
protected function addSearchTermJoinConstraintsToQueryBuilder(QueryBuilder &$queryBuilder, string $searchTerm)
{
$queryBuilder
->andWhere('n.properties LIKE :searchTerm')
->andWhere('LOWER(n.properties) LIKE :searchTerm')
->setParameter('searchTerm', '%' . $searchTerm . '%');
}

Expand Down

0 comments on commit 169d9d2

Please sign in to comment.