original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Does the query builder have a translation join
  
  @param ProxyQueryInterface $queryBuilder
  @return bool
docstring_tokens: Does the query builder have a translation join