public static function setConnection($con, $env = null) 
    {
        $env = self::selectEnvironment($env);
        self::$_connection[$env] = $con;

        // just send an exception when not on production mode
        if (in_array($env, array("development","test"))) {
            self::setErrorHandling(\PDO::ERRMODE_EXCEPTION);
        }
    }
public static function setConnection($con, $env = null) 
    {
        $env = self::selectEnvironment($env);
        self::$_connection[$env] = $con;

        // just send an exception when not on production mode
        if (in_array($env, array("development","test"))) {
            self::setErrorHandling(\PDO::ERRMODE_EXCEPTION);
        }
    }
public static function setConnection ( $ con , $ env = null ) { $ env = self :: selectEnvironment ( $ env ) ; self :: $ _connection [ $ env ] = $ con ; // just send an exception when not on production mode if ( in_array ( $ env , array ( "development" , "test" ) ) ) { self :: setErrorHandling ( \ PDO :: ERRMODE_EXCEPTION ) ; } }
Set the connection handle

@param mixed  $con connection handle
@param string $env environment

@return null
Set the connection handle