$result = \
array_map(fn (string
$id) =>
['primaryKey' =>
$id, 'data' =>
[]],
$result);
} return new IdSearchResult(\
count($result),
$result,
$criteria,
$context);
} /**
* @experimental
*/
public function create(array
$data, Context
$context): EntityWrittenContainerEvent
{ $writeResults =
$this->
getDummyWriteResults($data, EntityWriteResult::OPERATION_INSERT,
$context);
/** @var EntityWrittenEvent $entityWrittenEvent */
$entityWrittenEvent =
$writeResults->
first();
$this->creates
[] =
$entityWrittenEvent->
getPayloads();
return new EntityWrittenContainerEvent($context,
$writeResults,
[]);
} /**
* @experimental
*/