public static function setConnection($con, $env="development")
    {
        $cls = get_called_class();
        if (!array_key_exists($cls, self::$_connections)) {
            self::$_connections[$cls] = array();
        }
        self::$_connections[$cls][$env] = $con;
    }
public static function setConnection($con, $env="development")
    {
        $cls = get_called_class();
        if (!array_key_exists($cls, self::$_connections)) {
            self::$_connections[$cls] = array();
        }
        self::$_connections[$cls][$env] = $con;
    }
public static function setConnection ( $ con , $ env = "development" ) { $ cls = get_called_class ( ) ; if ( ! array_key_exists ( $ cls , self :: $ _connections ) ) { self :: $ _connections [ $ cls ] = array ( ) ; } self :: $ _connections [ $ cls ] [ $ env ] = $ con ; }
Sets a specific connection for the current model

@param mixed  $con PDO connection
@param string $env enviroment

@return null
Sets a specific connection for the current model