Revert "Reworked Database stuff to be Datastore stuff"

This reverts commit ebd0018473.
This commit is contained in:
Josh Sherman 2013-02-26 15:14:17 -05:00
parent ebd0018473
commit d25b042d8e
12 changed files with 180 additions and 170 deletions

View file

@ -310,7 +310,7 @@ class Model extends Object
parent::__construct();
// Gets an instance of the database and check which it is
$this->db = Datastore::getInstance();
$this->db = Database::getInstance();
$this->use_cache = $this->db->cache;
$this->mysql = ($this->db->driver == 'pdo_mysql');
$this->postgresql = ($this->db->driver == 'pdo_pgsql');