Ejemplo n.º 1
0
 /**
  * Implements Drupal\Core\Database\Query\ConditionInterface::where().
  */
 public function where($snippet, $args = array())
 {
     $this->condition->where($snippet, $args);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Adds an arbitrary HAVING clause to the query.
  *
  * @param $snippet
  *   A portion of a HAVING clause as a prepared statement. It must use named
  *   placeholders, not ? placeholders.
  * @param $args
  *   (optional) An associative array of arguments.
  *
  * @return $this
  */
 public function having($snippet, $args = array())
 {
     $this->having->where($snippet, $args);
     return $this;
 }