$this->
addSql($sql);
} private function importFacetTranslations() { $shops =
$this->connection->
query('SELECT id, main_id, locale_id FROM s_core_shops'
)->
fetchAll(PDO::FETCH_ASSOC
);
foreach ($shops as $shop) { $translationShopId =
$shop['main_id'
] ?:
$shop['id'
];
$localeId =
$shop['locale_id'
];
$insert =
$this->
getExistingSortingTranslations($translationShopId,
$localeId);
if (!
empty($insert)) { $this->
addSql( "INSERT INTO s_core_translations (objecttype, objectdata, objectkey, objectlanguage)
VALUES ('custom_facet', '" .
serialize($insert) . "', '1', " .
$shop['id'
] . ')'
);
} } } /**
* @param int $translationShopId
* @param int $localeId
*
* @return array
*/