From 745ac394bbb6f66ba98643cab4f20d74f04d8b78 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 8 Jul 2011 07:37:50 -0700 Subject: [PATCH] Adjust Eloquent\Hydrator to pass array of columns into Query->get method. --- system/db/eloquent/hydrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/db/eloquent/hydrator.php b/system/db/eloquent/hydrator.php index 5ebb19a3..b196053f 100644 --- a/system/db/eloquent/hydrator.php +++ b/system/db/eloquent/hydrator.php @@ -195,7 +195,7 @@ private static function eagerly_load_many_to_many($relationship, &$parents, $rel // 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);