diff --git a/core/MY_Model.php b/core/MY_Model.php index 34cb9fe..43debea 100644 --- a/core/MY_Model.php +++ b/core/MY_Model.php @@ -105,6 +105,9 @@ public function __construct() $this->_fetch_table(); $this->_database = $this->db; + + //DB Prefix from Specified Database Connection + $this->_table = $this->_database->dbprefix($this->_table); array_unshift($this->before_create, 'protect_attributes'); array_unshift($this->before_update, 'protect_attributes'); @@ -444,6 +447,11 @@ public function with($relationship) return $this; } + + public function with_r($relationship) + { + //DO STUFF HERE + } public function relate($row) { @@ -890,4 +898,4 @@ protected function _return_type($multi = FALSE) $method = ($multi) ? 'result' : 'row'; return $this->_temporary_return_type == 'array' ? $method . '_array' : $method; } -} \ No newline at end of file +}