Browse Source

Update 'src/ORM/DBInstance.php'

ahwelp 6 năm trước cách đây
mục cha
commit
f2eac27b98
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/ORM/DBInstance.php

+ 2 - 0
src/ORM/DBInstance.php

@@ -5,6 +5,8 @@ namespace ORM;
 class DBInstance {
 
     private static function addPrefix($sql, $instance = 'default'){
+      	$con = Connections::getConnection($instance);
+      	
       	//Where is preg_replace when we need it D`:
       	$sql = str_replace("\n", "", $sql);
 		while(strpos($sql, "  ") > -1){