Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Query/SelectInterface.php \Drupal\Core\Database\Query\SelectInterface::having()
  2. 9 core/lib/Drupal/Core/Database/Query/SelectInterface.php \Drupal\Core\Database\Query\SelectInterface::having()

Adds an arbitrary HAVING clause to the query.

Parameters

$snippet: A portion of a HAVING clause as a prepared statement. It must use named placeholders, not ? placeholders.

$args: (optional) An associative array of arguments.

Return value

$this

1 method overrides SelectInterface::having()
SelectExtender::having in core/lib/Drupal/Core/Database/Query/SelectExtender.php
Adds an arbitrary HAVING clause to the query.

File

core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 559

Class

SelectInterface
Interface definition for a Select Query object.

Namespace

Drupal\Core\Database\Query

Code

public function having($snippet, $args = []);