public function like($propertyName, $operand, $caseSensitive = true)
{
if (!is_string($operand)) {
throw new InvalidQueryException('Operand must be a string, was ' . gettype($operand), 1276781107);
}
if ($caseSensitive) {
$comparison = $this->qomFactory->comparison($this->qomFactory->propertyValue($propertyName, '_entity'), QueryInterface::OPERATOR_LIKE, $operand);
} else {
$comparison = $this->qomFactory->comparison($this->qomFactory->lowerCase($this->qomFactory->propertyValue($propertyName, '_entity')), QueryInterface::OPERATOR_LIKE, strtolower($operand));
}
return $comparison;
}