Reworked Database stuff to be Datastore stuff

Wanted a generic grouping for all datastores so there's a place for memcached and redis.
This commit is contained in:
Josh Sherman 2013-02-26 10:15:52 -05:00
parent df0ef6d959
commit ebd0018473
12 changed files with 170 additions and 180 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 = Database::getInstance();
$this->db = Datastore::getInstance();
$this->use_cache = $this->db->cache;
$this->mysql = ($this->db->driver == 'pdo_mysql');
$this->postgresql = ($this->db->driver == 'pdo_pgsql');