Example #1
0
 /**
  * Implements Drupal\Core\Database\Query\ConditionInterface::exists().
  */
 public function exists(SelectInterface $select)
 {
     $this->condition->exists($select);
     return $this;
 }
 /**
  * Sets a HAVING condition that the specified subquery returns values.
  *
  * @param \Drupal\Core\Database\Query\SelectInterface $select
  *   The subquery that must contain results.
  *
  * @return $this
  */
 public function havingExists(SelectInterface $select)
 {
     $this->having->exists($select);
     return $this;
 }