src/Bridge/Doctrine/Orm/Util/QueryChecker.php
public static function hasJoinedToManyAssociation(QueryBuilder $queryBuilder, ManagerRegistry $managerRegistry): bool
    {
        if (
            0 === \count($queryBuilder->getDQLPart('join'))
        ) {
            return false;
        }

        $joinAliases = array_diff($queryBuilder->getAllAliases(), $queryBuilder->getRootAliases());
        if (0 === \count($joinAliases)) {
            return false;
        }

        foreach ($joinAliases as $joinAlias) {
            foreach (QueryBuilderHelper::traverseJoins($joinAlias, $queryBuilder, $managerRegistry) as $alias => [$metadata, $association]) {
                if (null !== $association && $metadata->isCollectionValuedAssociation($association)) {
                    return true;
                }
            }
        }

        return false;
    }
public static function hasJoinedToManyAssociation(QueryBuilder $queryBuilder, ManagerRegistry $managerRegistry): bool
    {
        if (
            0 === \count($queryBuilder->getDQLPart('join'))
        ) {
            return false;
        }

        $joinAliases = array_diff($queryBuilder->getAllAliases(), $queryBuilder->getRootAliases());
        if (0 === \count($joinAliases)) {
            return false;
        }

        foreach ($joinAliases as $joinAlias) {
            foreach (QueryBuilderHelper::traverseJoins($joinAlias, $queryBuilder, $managerRegistry) as $alias => [$metadata, $association]) {
                if (null !== $association && $metadata->isCollectionValuedAssociation($association)) {
                    return true;
                }
            }
        }

        return false;
    }
public static function hasJoinedToManyAssociation ( QueryBuilder $ queryBuilder , ManagerRegistry $ managerRegistry ) : bool { if ( 0 === \ count ( $ queryBuilder -> getDQLPart ( 'join' ) ) ) { return false ; } $ joinAliases = array_diff ( $ queryBuilder -> getAllAliases ( ) , $ queryBuilder -> getRootAliases ( ) ) ; if ( 0 === \ count ( $ joinAliases ) ) { return false ; } foreach ( $ joinAliases as $ joinAlias ) { foreach ( QueryBuilderHelper :: traverseJoins ( $ joinAlias , $ queryBuilder , $ managerRegistry ) as $ alias => [ $ metadata , $ association ] ) { if ( null !== $ association && $ metadata -> isCollectionValuedAssociation ( $ association ) ) { return true ; } } } return false ; }
Determines whether the QueryBuilder has a joined to-many association.
Determines whether the QueryBuilder has a joined to - many association .