[TYPO3-mvc] Query like with caseSensitive=false do not work!
Steffen Kamper
info at sk-typo3.de
Fri Oct 17 14:13:10 CEST 2014
Hi,
there is a third parameter for caseSensitive, but this parameter is not used in Extbase.
This is a really important bug, as search should be in general case insensitive.
So, if you use
$query->like('name', '%' . $sword . '%', false)
and you look in Query-Class you'll find
public function like($propertyName, $operand, $caseSensitive = TRUE) {
return $this->qomFactory->comparison($this->qomFactory->propertyValue($propertyName, $this->getSelectorName()), QueryInterface::OPERATOR_LIKE, $operand);
}
Do someone see a workaround without patching the core class?
More information about the TYPO3-project-typo3v4mvc
mailing list