Neos\Flow\Persistence\Doctrine\Query::getPropertyNameWithAlias PHP Метод

getPropertyNameWithAlias() защищенный Метод

This enables us to set conditions on related objects.
protected getPropertyNameWithAlias ( string $propertyPath ) : string
$propertyPath string The path to a sub property, e.g. property.subProperty.foo, or a simple property name
Результат string The last part of the property name prefixed by the used join alias, if joins have been added
    protected function getPropertyNameWithAlias($propertyPath)
    {
        $aliases = $this->queryBuilder->getRootAliases();
        $previousJoinAlias = $aliases[0];
        if (strpos($propertyPath, '.') === false) {
            return $previousJoinAlias . '.' . $propertyPath;
        }
        $propertyPathParts = explode('.', $propertyPath);
        $conditionPartsCount = count($propertyPathParts);
        for ($i = 0; $i < $conditionPartsCount - 1; $i++) {
            $joinAlias = $propertyPathParts[$i] . $this->joinAliasCounter++;
            $this->queryBuilder->leftJoin($previousJoinAlias . '.' . $propertyPathParts[$i], $joinAlias);
            $this->joins[$joinAlias] = $previousJoinAlias . '.' . $propertyPathParts[$i];
            $previousJoinAlias = $joinAlias;
        }
        return $previousJoinAlias . '.' . $propertyPathParts[$i];
    }