Fix bug in eloqueny hydrator.

This commit is contained in:
Taylor Otwell 2012-03-26 16:49:31 -05:00
parent 5a59c5f317
commit 8af11e6d61
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,8 @@ public function hydrate($model, $results, $include = true)
$new->$key = $value;
}
$new->original = $new->attributes;
$models[$result[$this->model->key()]] = $new;
}