public function update(EntityWrittenContainerEvent
$event): ?EntityIndexingMessage
{ $ids =
$event->
getPrimaryKeys(ProductStreamDefinition::ENTITY_NAME
);
if (empty($ids)) { return null;
} foreach ($ids as $id) { $message =
new ProductStreamMappingIndexingMessage($id);
$message->
setIndexer($this->
getName());
$this->messageBus->
dispatch($message);
} return null;
} /**
* @param string[] $ids
*/
public function updateProducts(array
$ids, Context
$context): void
{