<TEntity is SyncEntityInterface>
final | |
---|---|
implements |
SyncEntityResolverInterface<TEntity> |
Resolves a name to an entity by iterating over entities filtered by name
Entities are retrieved every time {@see SyncEntityResolver::getByName()} is called. If a request fails because the provider is unable to filter entities by name, a fallback request for every entity is made.
Methods | ||
---|---|---|
public
|
__construct(SyncEntityProviderInterface<TEntity> $entityProvider, string $nameProperty)
|
# |
public
|
getByName(string $name, ?float &$uncertainty = null): ?SyncEntityInterface
|
# |