Commit 720d9de5 authored by Taylor Otwell's avatar Taylor Otwell

Fix bug in eloquent model hydration.

Signed-off-by: 's avatarTaylor Otwell <taylorotwell@gmail.com>
parent 2c12be30
......@@ -119,7 +119,7 @@ class Query {
// 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment