original_string: public function convertValuesToValueIds($values)
      {
          $tableName   = $this->getSelectSource();
          $idColumn    = $this->getIdColumn();
          $aliasColumn = $this->getAliasColumn();
  
          if ($idColumn === $aliasColumn) {
              return $values;
          }
  
          $values = \array_unique(\array_filter($values));
          if (empty($values)) {
              return [];
          }
  
          return $this->connection->createQueryBuilder()
              ->select($idColumn)
              ->from($tableName)
              ->where($aliasColumn . ' IN (:values)')
              ->setParameter('values', $values, Connection::PARAM_STR_ARRAY)
              ->execute()
              ->fetch(\PDO::FETCH_ASSOC);
      }
code: public function convertValuesToValueIds($values)
      {
          $tableName   = $this->getSelectSource();
          $idColumn    = $this->getIdColumn();
          $aliasColumn = $this->getAliasColumn();
  
          if ($idColumn === $aliasColumn) {
              return $values;
          }
  
          $values = \array_unique(\array_filter($values));
          if (empty($values)) {
              return [];
          }
  
          return $this->connection->createQueryBuilder()
              ->select($idColumn)
              ->from($tableName)
              ->where($aliasColumn . ' IN (:values)')
              ->setParameter('values', $values, Connection::PARAM_STR_ARRAY)
              ->execute()
              ->fetch(\PDO::FETCH_ASSOC);
      }
code_tokens: public function convertValuesToValueIds ( $ values ) { $ tableName = $ this -> getSelectSource ( ) ; $ idColumn = $ this -> getIdColumn ( ) ; $ aliasColumn = $ this -> getAliasColumn ( ) ; if ( $ idColumn === $ aliasColumn ) { return $ values ; } $ values = \ array_unique ( \ array_filter ( $ values ) ) ; if ( empty ( $ values ) ) { return [ ] ; } return $ this -> connection -> createQueryBuilder ( ) -> select ( $ idColumn ) -> from ( $ tableName ) -> where ( $ aliasColumn . ' IN (:values)' ) -> setParameter ( 'values' , $ values , Connection :: PARAM_STR_ARRAY ) -> execute ( ) -> fetch ( \ PDO :: FETCH_ASSOC ) ; }
docstring: Convert the passed values to a list of value ids.
  
  @param string[] $values The values to convert.
  
  @return string[]
docstring_tokens: Convert the passed values to a list of value ids .