Commit 745ac394 authored by Taylor Otwell's avatar Taylor Otwell

Adjust Eloquent\Hydrator to pass array of columns into Query->get method.

parent a0195e93
...@@ -195,7 +195,7 @@ class Hydrator { ...@@ -195,7 +195,7 @@ class Hydrator {
// models back to their parents. // models back to their parents.
$children = $relationship->query $children = $relationship->query
->where_in($relating_table.'.'.$relating_key, array_keys($parents)) ->where_in($relating_table.'.'.$relating_key, array_keys($parents))
->get(Eloquent::table(get_class($relationship)).'.*', $relating_table.'.'.$relating_key); ->get(array(Eloquent::table(get_class($relationship)).'.*', $relating_table.'.'.$relating_key));
$class = get_class($relationship); $class = get_class($relationship);
......
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