getDefaultFeatureSetTranslation example

$languages[] = Uuid::fromHexToBytes(Defaults::LANGUAGE_SYSTEM);
        $languages = array_unique($languages);

        $sql = <<<'SQL' REPLACE INTO `product_feature_set_translation` (`product_feature_set_id`, `language_id`, `name`, `description`, `created_at`) VALUES (:product_feature_set_id, :language_id, :name, :description, :created_at); SQL;

        foreach ($languages as $language) {
            $connection->executeStatement(
                $sql,
                $this->getDefaultFeatureSetTranslation(
                    $featureSetId,
                    $language,
                    self::TRANSLATIONS['en-GB']
                )
            );
        }

        $languages = $this->fetchLanguageIds($connection['de-DE']);

        foreach ($languages as $language) {
            $connection->executeStatement(
                
Home | Imprint | This part of the site doesn't use cookies.