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:
parent
df0ef6d959
commit
ebd0018473
12 changed files with 170 additions and 180 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue