diff --git a/src/ORM/DBInstance.php b/src/ORM/DBInstance.php index 170f5fd..54588ba 100755 --- a/src/ORM/DBInstance.php +++ b/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){