Yoast\WP\Lib

ORM::having()publicYoast 1.0

Adds a HAVING column = value clause to your query.

Each time this is called in the chain, an additional HAVING will be added, and these will be ANDed together when the final query is built.

If you use an array in $column_name, a new clause will be added for each element. In this case, $value is ignored.

Метод класса: ORM{}

Хуков нет.

Возвращает

ORM.

Использование

$ORM = new ORM();
$ORM->having( $column_name, $value );
$column_name(строка|массив) (обязательный)
The table column.
$value(разное|null)
The value.
По умолчанию: null

Код ORM::having() Yoast 22.3

public function having( $column_name, $value = null ) {
	return $this->having_equal( $column_name, $value );
}