public static function setConnection($name, PropelPDO $con, $mode = Propel::CONNECTION_WRITE)
    {
        if ($name === null) {
            $name = self::getDefaultDB();
        }
        if ($mode == Propel::CONNECTION_READ) {
            self::$connectionMap[$name]['slave'] = $con;
        } else {
            self::$connectionMap[$name]['master'] = $con;
        }
    }
public static function setConnection($name, PropelPDO $con, $mode = Propel::CONNECTION_WRITE)
    {
        if ($name === null) {
            $name = self::getDefaultDB();
        }
        if ($mode == Propel::CONNECTION_READ) {
            self::$connectionMap[$name]['slave'] = $con;
        } else {
            self::$connectionMap[$name]['master'] = $con;
        }
    }
public static function setConnection ( $ name , PropelPDO $ con , $ mode = Propel :: CONNECTION_WRITE ) { if ( $ name === null ) { $ name = self :: getDefaultDB ( ) ; } if ( $ mode == Propel :: CONNECTION_READ ) { self :: $ connectionMap [ $ name ] [ 'slave' ] = $ con ; } else { self :: $ connectionMap [ $ name ] [ 'master' ] = $ con ; } }
Sets a Connection for specified datasource name.

@param string    $name The datasource name for the connection being set.
@param PropelPDO $con  The PDO connection.
@param string    $mode Whether this is a READ or WRITE connection (Propel::CONNECTION_READ, Propel::CONNECTION_WRITE)
Sets a Connection for specified datasource name .