/**
* @param array<string> $parentIds
*/
public function update(array
$parentIds, Context
$context): void
{ $parentIds =
array_unique(array_filter($parentIds));
if (empty($parentIds)) { return;
} $all =
$this->
fetchPrices($parentIds,
$context);
$versionId = Uuid::
fromHexToBytes($context->
getVersionId());
$cheapestPrice =
new RetryableQuery( $this->connection,
$this->connection->
prepare('UPDATE product SET cheapest_price = :price WHERE id = :id AND version_id = :version'
) );
$accessorQuery =
new RetryableQuery( $this->connection,
$this->connection->
prepare('UPDATE product SET cheapest_price_accessor = :accessor WHERE id = :id AND version_id = :version'
) );