ORMQueryBuilderLoader
in package
implements
EntityLoaderInterface
Loads entities using a {@link QueryBuilder} instance.
Tags
Table of Contents
Interfaces
- EntityLoaderInterface
- Custom loader for entities in the choice list.
Properties
- $queryBuilder : mixed
- Contains the query builder that builds the query for fetching the entities.
Methods
- __construct() : mixed
- getEntities() : array<string|int, mixed>
- Returns an array of entities that are valid choices in the corresponding choice list.
- getEntitiesByIds() : array<string|int, mixed>
- Returns an array of entities matching the given identifiers.
Properties
$queryBuilder
Contains the query builder that builds the query for fetching the entities.
private
mixed
$queryBuilder
This property should only be accessed through queryBuilder.
Methods
__construct()
public
__construct(QueryBuilder $queryBuilder) : mixed
Parameters
- $queryBuilder : QueryBuilder
getEntities()
Returns an array of entities that are valid choices in the corresponding choice list.
public
getEntities() : array<string|int, mixed>
Return values
array<string|int, mixed>getEntitiesByIds()
Returns an array of entities matching the given identifiers.
public
getEntitiesByIds(string $identifier, array<string|int, mixed> $values) : array<string|int, mixed>
Parameters
- $identifier : string
- $values : array<string|int, mixed>