mediatekformation

ORMQueryBuilderLoader
in package
implements EntityLoaderInterface

Loads entities using a {@link QueryBuilder} instance.

Tags
author

Benjamin Eberlei kontakt@beberlei.de

author

Bernhard Schussek bschussek@gmail.com

Interfaces, Classes, Traits and Enums

EntityLoaderInterface
Custom loader for entities in the choice list.

Table of Contents

$queryBuilder  : QueryBuilder
Contains the query builder that builds the query for fetching the entities.
__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 QueryBuilder $queryBuilder

This property should only be accessed through queryBuilder.

Methods

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>

The entities

getEntitiesByIds()

Returns an array of entities matching the given identifiers.

public getEntitiesByIds(mixed $identifier, array<string|int, mixed> $values) : array<string|int, mixed>
Parameters
$identifier : mixed

The identifier field of the object. This method is not applicable for fields with multiple identifiers.

$values : array<string|int, mixed>

The values of the identifiers

Return values
array<string|int, mixed>

The entities

Search results