Yoast\WP\Lib

ORM::having_id_is()publicYoast 1.0

Queries the table by its primary key. Special method.

If primary key is compound, only the columns that belong to they key will be used for the query.

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

Хуков нет.

Возвращает

ORM.

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

$ORM = new ORM();
$ORM->having_id_is( $id );
$id(строка) (обязательный)
The ID.

Код ORM::having_id_is() Yoast 20.0

public function having_id_is( $id ) {
	return \is_array( $this->get_id_column_name() ) ? $this->having( $this->get_compound_id_column_values( $id ), null ) : $this->having( $this->get_id_column_name(), $id );
}