class ORMQueryBuilderLoader implements EntityLoaderInterface
Loads entities using a {@link QueryBuilder} instance.
__construct(QueryBuilder $queryBuilder) Construct an ORM Query Builder Loader. | ||
array | getEntities() Returns an array of entities that are valid choices in the corresponding choice list. | |
array | getEntitiesByIds(string $identifier, array $values) Returns an array of entities matching the given identifiers. |
Construct an ORM Query Builder Loader.
QueryBuilder | $queryBuilder | The query builder for creating the query builder |
Returns an array of entities that are valid choices in the corresponding choice list.
array | The entities |
Returns an array of entities matching the given identifiers.
string | $identifier | The identifier field of the object. This method is not applicable for fields with multiple identifiers. |
array | $values | The values of the identifiers |
array | The entities |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.html