Select::having

public Select::having($snippet, $args = array())

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

Overrides SelectInterface::having

File

core/lib/Drupal/Core/Database/Query/Select.php, line 304

Class

Select
Query builder for SELECT statements.

Namespace

Drupal\Core\Database\Query

Code

public function having($snippet, $args = array()) {
  $this->having->where($snippet, $args);
  return $this;
}
doc_Drupal
2016-10-29 09:41:18
Comments
Leave a Comment

Please login to continue.