function ConditionAggregate::notExists
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php \Drupal\Core\Entity\Query\Sql\ConditionAggregate::notExists()
- 10 core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php \Drupal\Core\Entity\Query\Sql\ConditionAggregate::notExists()
- 11.x core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php \Drupal\Core\Entity\Query\Sql\ConditionAggregate::notExists()
Queries for the nonexistence of a field.
Parameters
string $field: The field to query for nonexistence.
string $function: The function.
string $langcode: (optional) For which language the entity should be prepared, defaults to the current content language.
Return value
\Drupal\Core\Entity\Query\ConditionInterface
Overrides ConditionAggregateInterface::notExists
File
-
core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ ConditionAggregate.php, line 64
Class
- ConditionAggregate
- Defines the aggregate condition for sql based storage.
Namespace
Drupal\Core\Entity\Query\SqlCode
public function notExists($field, $function, $langcode = NULL) {
return $this->condition($field, $function, NULL, 'IS NULL', $langcode);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.