From b8e27533bdd943ad7eeb71f6e495c9268e415647 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 1 Aug 2011 18:07:36 -0500 Subject: [PATCH] use db manager in validator. --- system/validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/validator.php b/system/validator.php index 0e53372b..148343a1 100644 --- a/system/validator.php +++ b/system/validator.php @@ -305,7 +305,7 @@ class Validator { $parameters[1] = $attribute; } - return DB::table($parameters[0])->where($parameters[1], '=', $this->attributes[$attribute])->count() == 0; + return DB\Manager::connection()->table($parameters[0])->where($parameters[1], '=', $this->attributes[$attribute])->count() == 0; } /**