Fix bug in eloquent model hydration.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
parent
2c12be305d
commit
720d9de582
|
@ -119,7 +119,7 @@ public function hydrate($model, $results, $include = true)
|
||||||
// we were to pass them in using the constructor or fill methods.
|
// we were to pass them in using the constructor or fill methods.
|
||||||
foreach ($result as $key => $value)
|
foreach ($result as $key => $value)
|
||||||
{
|
{
|
||||||
$new->$key = $value;
|
$new->set_attribute($key, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
$new->original = $new->attributes;
|
$new->original = $new->attributes;
|
||||||
|
|
Loading…
Reference in New Issue