private function hasJoin(ProxyQueryInterface $queryBuilder, $alias)
    {
        $joins = $queryBuilder->getDQLPart('join');

        if (!isset($joins[$alias])) {
            return false;
        }

        foreach ($joins[$alias] as $join) {
            if ('trans' === $join->getAlias()) {
                return true;
            }
        }

        return false;
    }
private function hasJoin(ProxyQueryInterface $queryBuilder, $alias)
    {
        $joins = $queryBuilder->getDQLPart('join');

        if (!isset($joins[$alias])) {
            return false;
        }

        foreach ($joins[$alias] as $join) {
            if ('trans' === $join->getAlias()) {
                return true;
            }
        }

        return false;
    }
private function hasJoin ( ProxyQueryInterface $ queryBuilder , $ alias ) { $ joins = $ queryBuilder -> getDQLPart ( 'join' ) ; if ( ! isset ( $ joins [ $ alias ] ) ) { return false ; } foreach ( $ joins [ $ alias ] as $ join ) { if ( 'trans' === $ join -> getAlias ( ) ) { return true ; } } return false ; }
Does the query builder have a translation join

@param ProxyQueryInterface $queryBuilder
@return bool
Does the query builder have a translation join