示例#1
0
文件: Model.php 项目: voku/paris
 /**
  * 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.
  *
  * @param  array $data
  *
  * @return void
  */
 public function hydrate($data)
 {
     $this->orm->hydrate($data)->force_all_dirty();
 }