'SELECT LOWER(HEX(product_id)) FROM product_stream_mapping WHERE product_stream_id = :id',
['id' =>
$binary],
);
RetryableTransaction::
retryable($this->connection,
function D
) use ($binary): void
{ $this->connection->
executeStatement( 'DELETE FROM product_stream_mapping WHERE product_stream_id = :id',
['id' =>
$binary],
);
});
while ($matches =
$iterator->
fetchIds()) { foreach ($matches as $id) { if (!\
is_string($id)) { continue;
} $ids[] =
$id;
$insert->
addInsert('product_stream_mapping',
[ 'product_id' => Uuid::
fromHexToBytes($id),
'product_version_id' =>
$version,
'product_stream_id' =>
$binary,
]);
}