if ($categoryProfileId) { $mapping =
$this->
getCategoryMapping();
$connection->
update('import_export_profile',
['mapping' =>
json_encode($mapping, \JSON_THROW_ON_ERROR
)],
['id' =>
$categoryProfileId]);
} $mediaProfileId =
$connection->
executeQuery( 'SELECT `id` FROM `import_export_profile` WHERE `name` = :name AND `system_default` = 1 AND source_entity = "media"',
['name' => 'Default media'
] )->
fetchOne();
if ($mediaProfileId) { $mapping =
$this->
getMediaMapping();
$connection->
update('import_export_profile',
['mapping' =>
json_encode($mapping, \JSON_THROW_ON_ERROR
)],
['id' =>
$mediaProfileId]);
} } public function updateDestructive(Connection
$connection): void
{ // implement update destructive
} /**
* @return list<array{key: string, mappedKey: string}>
*/