Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\PropertyConditionGenerator::getSqlForSimpleProperty PHP Method

getSqlForSimpleProperty() protected method

protected getSqlForSimpleProperty ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, Doctrine\ORM\Mapping\QuoteStrategy $quoteStrategy, Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias, string $targetEntityPropertyName ) : string
$sqlFilter Doctrine\ORM\Query\Filter\SQLFilter
$quoteStrategy Doctrine\ORM\Mapping\QuoteStrategy
$targetEntity Doctrine\Common\Persistence\Mapping\ClassMetadata
$targetTableAlias string
$targetEntityPropertyName string
return string
    protected function getSqlForSimpleProperty(DoctrineSqlFilter $sqlFilter, QuoteStrategy $quoteStrategy, ClassMetadata $targetEntity, $targetTableAlias, $targetEntityPropertyName)
    {
        $quotedColumnName = $quoteStrategy->getColumnName($targetEntityPropertyName, $targetEntity, $this->entityManager->getConnection()->getDatabasePlatform());
        $propertyPointer = $targetTableAlias . '.' . $quotedColumnName;
        if (is_array($this->operandDefinition)) {
            foreach ($this->operandDefinition as $operandIterator => $singleOperandValue) {
                $this->setParameter($sqlFilter, $operandIterator, $singleOperandValue);
            }
        } else {
            $this->setParameter($sqlFilter, $this->operandDefinition, $this->operand);
        }
        return $this->getConstraintStringForSimpleProperty($sqlFilter, $propertyPointer);
    }