QueryFactory deprecated
class QueryFactory implements ContainerAwareInterface (View source)
deprecated
Factory class Creating entity query objects.
Any implementation of this service must call getQuery()/getAggregateQuery() of the corresponding entity storage.
Traits
ContainerAwareTrait
Provides a standard way to announce deprecated properties.
Properties
| protected | $deprecatedProperties | {@inheritdoc} | |
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager service. |
Methods
get(string $entity_type_id, string $conjunction = 'AND')
Returns a query object for a given entity type.
getAggregate(string $entity_type_id, string $conjunction = 'AND')
Returns an aggregated query object for a given entity type.
Details
__get($name)
Allows to access deprecated/removed properties.
This method must be public.
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs a QueryFactory object.
QueryInterface
get(string $entity_type_id, string $conjunction = 'AND')
Returns a query object for a given entity type.
QueryAggregateInterface
getAggregate(string $entity_type_id, string $conjunction = 'AND')
Returns an aggregated query object for a given entity type.