Browse Source

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

Taylor Otwell 13 years ago
parent
commit
745ac394bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/db/eloquent/hydrator.php

+ 1 - 1
system/db/eloquent/hydrator.php

@@ -195,7 +195,7 @@ class Hydrator {
 		// models back to their parents.
 		$children = $relationship->query
                                      ->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);