You are here

public function Condition::notExists in CiviCRM Entity 8.3

Queries for the nonexistence of a field.

Parameters

string $field:

string $langcode:

Return value

$this

Overrides ConditionInterface::notExists

See also

\Drupal\Core\Entity\Query\QueryInterface::notExists()

File

src/Entity/Query/CiviCRM/Condition.php, line 50

Class

Condition
Implements entity query conditions for CiviCRM.

Namespace

Drupal\civicrm_entity\Entity\Query\CiviCRM

Code

public function notExists($field, $langcode = NULL) {
  return $this
    ->condition($field, NULL, 'IS NULL', $langcode);
}