{ if (!
$definition instanceof EntityDefinition
) { return;
} try { $definition->
getFields();
} catch (\Throwable
$exception) { $registry =
new StaticDefinitionInstanceRegistry( [$definition],
Validation::
createValidator(),
new StaticEntityWriterGateway() );
$definition->
compile($registry);
} } /**
* @return EntitySearchResult<TEntityCollection>
*/
public function search(Criteria
$criteria, Context
$context): EntitySearchResult
{ $result = \
array_shift($this->searches
);