public function equals($propertyName, $operand, $caseSensitive = true)
{
if ($operand === null) {
$comparison = $this->qomFactory->comparison($this->qomFactory->propertyValue($propertyName, '_entity'), QueryInterface::OPERATOR_IS_NULL);
} elseif (is_object($operand) || $caseSensitive) {
$comparison = $this->qomFactory->comparison($this->qomFactory->propertyValue($propertyName, '_entity'), QueryInterface::OPERATOR_EQUAL_TO, $operand);
} else {
$comparison = $this->qomFactory->comparison($this->qomFactory->lowerCase($this->qomFactory->propertyValue($propertyName, '_entity')), QueryInterface::OPERATOR_EQUAL_TO, strtolower($operand));
}
return $comparison;
}