Rudimentary support for table prefixing #1
This commit is contained in:
@@ -57,10 +57,11 @@ class Wrapper{
|
||||
|
||||
public static function get_table($name){
|
||||
$instance = self::getInstance();
|
||||
echo $instance->_adapter->getConnection()->prefix;
|
||||
|
||||
if( $instance->_adapter->getConnection()->prefix ){
|
||||
$name = $instance->_adapter->getConnection()->prefix . $name;
|
||||
}
|
||||
|
||||
return new Table($name, Array(), $instance->_adapter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user