Model::hydrate()publicYoast 1.0

Hydrate this model instance with an associative array of data. WARNING: The keys in the array MUST match with columns in the corresponding database table. If any keys are supplied which do not match up with columns, the database will throw an error.

{} Это метод класса: Model{}

Хуков нет.


null. Ничего.


$Model = new Model();
$Model->hydrate( $data );
$data(массив) (обязательный)
The data to pass to the ORM.

Код Model::hydrate() Yoast 19.2

public function hydrate( $data ) {
	$this->orm->hydrate( $data )->force_all_dirty();