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);
    }
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);
    }
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 ) ; }
Convert the passed values to a list of value ids.

@param string[] $values The values to convert.

@return string[]
Convert the passed values to a list of value ids .