QueryFactory

Provides a factory for creating entity query objects for the null backend. Hierarchy class \Drupal\Core\Entity\Query\Null\QueryFactory implements QueryFactoryInterface File core/lib/Drupal/Core/Entity/Query/Null/QueryFactory.php, line 12 Namespace Drupal\Core\Entity\Query\Null Members Name Modifiers Type Description QueryFactory::$namespaces protected property The namespace of this class, the parent class etc. QueryFactory::get public function Instantiates an ent

QueryFactory

Provides a factory for creating the key value entity query. Hierarchy class \Drupal\Core\Entity\KeyValueStore\Query\QueryFactory implements QueryFactoryInterface File core/lib/Drupal/Core/Entity/KeyValueStore/Query/QueryFactory.php, line 13 Namespace Drupal\Core\Entity\KeyValueStore\Query Members Name Modifiers Type Description QueryFactory::$keyValueFactory protected property The key value factory. QueryFactory::$namespaces protected property The namespace of th

QueryFactory

Factory class Creating entity query objects. Any implementation of this service must call getQuery()/getAggregateQuery() of the corresponding entity storage. @todo https://www.drupal.org/node/2389335 remove entity.query service and replace with using the entity storage's getQuery() method. Hierarchy class \Drupal\Core\Entity\Query\QueryFactory implements ContainerAwareInterface uses ContainerAwareTrait See also \Drupal\Core\Entity\EntityStorageBase::getQuery() File core/lib/Drupal/Core/Enti

QueryException

Exception thrown by Query() on unsupported query syntax. Some storage modules might not support the full range of the syntax for conditions, and will raise a QueryException when an unsupported condition was specified. Hierarchy class \Drupal\Core\Entity\Query\QueryException extends \Exception File core/lib/Drupal/Core/Entity/Query/QueryException.php, line 12 Namespace Drupal\Core\Entity\Query Members

QueryConditionTrait::where

public QueryConditionTrait::where($snippet, $args = array()) Adds an arbitrary WHERE clause to the query. Parameters $snippet: A portion of a WHERE clause as a prepared statement. It must use named placeholders, not ? placeholders. $args: An associative array of arguments. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::where File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 80 Class QueryConditionTrait Pro

QueryConditionTrait::orConditionGroup

public QueryConditionTrait::orConditionGroup() Creates a new group of conditions ORed together. Return value \Drupal\Core\Database\Query\ConditionInterface Overrides ConditionInterface::orConditionGroup File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 116 Class QueryConditionTrait Provides an implementation of ConditionInterface. Namespace Drupal\Core\Database\Query Code public function orConditionGroup() { return $this->conditionGroupFactory('OR'); }

QueryConditionTrait::notExists

public QueryConditionTrait::notExists(SelectInterface $select) Sets a condition that the specified subquery returns no values. Parameters \Drupal\Core\Database\Query\SelectInterface $select: The subquery that must not contain results. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::notExists File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 58 Class QueryConditionTrait Provides an implementation of Conditio

QueryConditionTrait::isNull

public QueryConditionTrait::isNull($field) Sets a condition that the specified field be NULL. Parameters $field: The name of the field to check. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::isNull File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 34 Class QueryConditionTrait Provides an implementation of ConditionInterface. Namespace Drupal\Core\Database\Query Code public function isNull($field) {

QueryConditionTrait::isNotNull

public QueryConditionTrait::isNotNull($field) Sets a condition that the specified field be NOT NULL. Parameters $field: The name of the field to check. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::isNotNull File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 42 Class QueryConditionTrait Provides an implementation of ConditionInterface. Namespace Drupal\Core\Database\Query Code public function isNotNull

QueryConditionTrait::exists

public QueryConditionTrait::exists(SelectInterface $select) Sets a condition that the specified subquery returns values. Parameters \Drupal\Core\Database\Query\SelectInterface $select: The subquery that must contain results. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::exists File core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 50 Class QueryConditionTrait Provides an implementation of ConditionInterface.