$event =
new EntityIdSearchResultLoadedEvent($this->definition,
$result);
$this->eventDispatcher->
dispatch($event,
$event->
getName());
return $result;
} /**
* @param array<array<string, mixed|null>> $data
*/
public function update(array
$data, Context
$context): EntityWrittenContainerEvent
{ ReplicaConnection::
ensurePrimary();
$affected =
$this->versionManager->
update($this->definition,
$data, WriteContext::
createFromContext($context));
$event = EntityWrittenContainerEvent::
createWithWrittenEvents($affected,
$context,
[]);
$this->eventDispatcher->
dispatch($event);
return $event;
} /**
* @param array<array<string, mixed|null>> $data
*/