From 8af11e6d61446ab195fc987d71c5ba2969346595 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 26 Mar 2012 16:49:31 -0500 Subject: [PATCH] Fix bug in eloqueny hydrator. --- laravel/database/eloquent/query.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/laravel/database/eloquent/query.php b/laravel/database/eloquent/query.php index 11eec542..e438f56d 100644 --- a/laravel/database/eloquent/query.php +++ b/laravel/database/eloquent/query.php @@ -122,6 +122,8 @@ public function hydrate($model, $results, $include = true) $new->$key = $value; } + $new->original = $new->attributes; + $models[$result[$this->model->key()]] = $new; }