feat(repository): add RepositoryQuery::addCaseInsensitiveFilters()
feat(repository): add RepositoryQuery::addForcedFilterHandler()
This commit is contained in:
parent
14465d4982
commit
2e2b0bce10
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ abstract class RepositoryQuery
|
|||
$this->setParameter(':'.$name, $value);
|
||||
} elseif (is_string($value)) {
|
||||
if (in_array($name, $this->caseInsensitiveFilters)) {
|
||||
$this->andWhere(sprintf('LOWER ( .%1$s) LIKE LOWER(:%1$d)', $name));
|
||||
$this->andWhere(sprintf('LOWER ( .%1$s) LIKE LOWER(:%1$s)', $name));
|
||||
} else {
|
||||
$this->andWhere('.'.$name.' LIKE :'.$name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue