refactor database structure... moved db\manager back to system\db.php

This commit is contained in:
Taylor Otwell
2011-08-13 22:23:07 -05:00
parent 21a6040a79
commit 9d4d6e52bd
5 changed files with 15 additions and 18 deletions

View File

@@ -302,7 +302,7 @@ class Validator {
{
if ( ! isset($parameters[1])) $parameters[1] = $attribute;
return DB\Manager::connection()->table($parameters[0])->where($parameters[1], '=', $this->attributes[$attribute])->count() == 0;
return DB::connection()->table($parameters[0])->where($parameters[1], '=', $this->attributes[$attribute])->count() == 0;
}
/**