Skip to content

Commit

Permalink
Fix bug in eloquent model hydration.
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Otwell <[email protected]>
  • Loading branch information
taylorotwell committed Mar 28, 2012
1 parent 2c12be3 commit 720d9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laravel/database/eloquent/query.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function hydrate($model, $results, $include = true)
// we were to pass them in using the constructor or fill methods.
foreach ($result as $key => $value)
{
$new->$key = $value;
$new->set_attribute($key, $value);
}

$new->original = $new->attributes;
Expand Down

0 comments on commit 720d9de

Please sign in to comment.