Ver Fonte

Rudimentary support for table prefixing #1

Artur Welp há 6 anos atrás
pai
commit
d1da3f781a
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/Schema/Wrapper.php

+ 2 - 1
src/Schema/Wrapper.php

@@ -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);
     }