Form\ChoiceList\ORMQueryBuilderLoader (Bridge\Doctrine)
Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader
class ORMQueryBuilderLoader implements EntityLoaderInterface
Loads entities using a {@link QueryBuilder} instance.
Methods
__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. |
Details
public __construct(QueryBuilder $queryBuilder)
Construct an ORM Query Builder Loader.
public array getEntities()
Returns an array of entities that are valid choices in the corresponding choice list.
public array getEntitiesByIds(string $identifier, array $values)
Returns an array of entities matching the given identifiers.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.html