private function getParentAlias(ProxyQueryInterface $queryBuilder, $alias)
    {
        $parentAlias = $rootAlias = current($queryBuilder->getRootAliases());
        $joins = $queryBuilder->getDQLPart('join');
        if (isset($joins[$rootAlias])) {
            foreach ($joins[$rootAlias] as $join) {
                if ($join->getAlias() === $alias) {
                    $parts = explode('.', $join->getJoin());
                    $parentAlias = $parts[0];

                    break;
                }
            }
        }

        return $parentAlias;
    }
private function getParentAlias(ProxyQueryInterface $queryBuilder, $alias)
    {
        $parentAlias = $rootAlias = current($queryBuilder->getRootAliases());
        $joins = $queryBuilder->getDQLPart('join');
        if (isset($joins[$rootAlias])) {
            foreach ($joins[$rootAlias] as $join) {
                if ($join->getAlias() === $alias) {
                    $parts = explode('.', $join->getJoin());
                    $parentAlias = $parts[0];

                    break;
                }
            }
        }

        return $parentAlias;
    }
private function getParentAlias ( ProxyQueryInterface $ queryBuilder , $ alias ) { $ parentAlias = $ rootAlias = current ( $ queryBuilder -> getRootAliases ( ) ) ; $ joins = $ queryBuilder -> getDQLPart ( 'join' ) ; if ( isset ( $ joins [ $ rootAlias ] ) ) { foreach ( $ joins [ $ rootAlias ] as $ join ) { if ( $ join -> getAlias ( ) === $ alias ) { $ parts = explode ( '.' , $ join -> getJoin ( ) ) ; $ parentAlias = $ parts [ 0 ] ; break ; } } } return $ parentAlias ; }
Retrieve the parent alias for given alias.
Root alias for direct association or entity joined alias for association depth >= 2.

@param string $alias

@return string
Retrieve the parent alias for given alias . Root alias for direct association or entity joined alias for association depth > = 2 .