From 3985a98f60df7aaec99a5aafb4ca48fac6410071 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 24 Jun 2011 11:33:42 -0700 Subject: [PATCH] Added Eloquent::all(). --- system/db/eloquent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/db/eloquent.php b/system/db/eloquent.php index be5d4d29..a5b383c5 100644 --- a/system/db/eloquent.php +++ b/system/db/eloquent.php @@ -477,7 +477,7 @@ abstract class Eloquent { { $model = static::make(get_called_class()); - if ($method == 'get') + if ($method == 'get' or $method == 'all') { return $model->_get(); }