public function equals($propertyName, $operand, $caseSensitive = true)
{
$aliasedPropertyName = $this->getPropertyNameWithAlias($propertyName);
if ($operand === null) {
return $this->queryBuilder->expr()->isNull($aliasedPropertyName);
}
if ($caseSensitive === true) {
return $this->queryBuilder->expr()->eq($aliasedPropertyName, $this->getParamNeedle($operand));
}
return $this->queryBuilder->expr()->eq($this->queryBuilder->expr()->lower($aliasedPropertyName), $this->getParamNeedle(UnicodeFunctions::strtolower($operand)));
}