Yoast\WP\Lib

ORM::force_all_dirty()publicYoast 1.0

Forces the ORM to flag all the fields in the $data array as "dirty" and therefore update them when save() is called.

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

Хуков нет.

Возвращает

ORM.

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

$ORM = new ORM();
$ORM->force_all_dirty();

Код ORM::force_all_dirty() Yoast 24.0

public function force_all_dirty() {
	$this->dirty_fields = $this->data;

	return $this;
}