ORM::where()publicYoast 1.0

Add a WHERE column = value clause to your query. Each time this is called in the chain, an additional WHERE 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 = new ORM();
$ORM->where( $column_name, $value );
$column_name(строка|массив) (обязательный)
The table column.
The value.
По умолчанию: null

Код ORM::where() Yoast 19.14

public function where( $column_name, $value = null ) {
	return $this->where_equal( $column_name, $value );