소스 검색

Rudimentary support for table prefixing #1

Artur Welp 6 년 전
부모
커밋
d1da3f781a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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);
     }