public static function getMasterConnection($name)
    {
        if (!isset(self::$connectionMap[$name]['master'])) {
            // load connection parameter for master connection
            $conparams = isset(self::$configuration['datasources'][$name]['connection']) ? self::$configuration['datasources'][$name]['connection'] : null;
            if (empty($conparams)) {
                throw new PropelException('No connection information in your runtime configuration file for datasource [' . $name . ']');
            }
            // initialize master connection
            $con = Propel::initConnection($conparams, $name);
            self::$connectionMap[$name]['master'] = $con;
        }

        return self::$connectionMap[$name]['master'];
    }
public static function getMasterConnection($name)
    {
        if (!isset(self::$connectionMap[$name]['master'])) {
            // load connection parameter for master connection
            $conparams = isset(self::$configuration['datasources'][$name]['connection']) ? self::$configuration['datasources'][$name]['connection'] : null;
            if (empty($conparams)) {
                throw new PropelException('No connection information in your runtime configuration file for datasource [' . $name . ']');
            }
            // initialize master connection
            $con = Propel::initConnection($conparams, $name);
            self::$connectionMap[$name]['master'] = $con;
        }

        return self::$connectionMap[$name]['master'];
    }
public static function getMasterConnection ( $ name ) { if ( ! isset ( self :: $ connectionMap [ $ name ] [ 'master' ] ) ) { // load connection parameter for master connection $ conparams = isset ( self :: $ configuration [ 'datasources' ] [ $ name ] [ 'connection' ] ) ? self :: $ configuration [ 'datasources' ] [ $ name ] [ 'connection' ] : null ; if ( empty ( $ conparams ) ) { throw new PropelException ( 'No connection information in your runtime configuration file for datasource [' . $ name . ']' ) ; } // initialize master connection $ con = Propel :: initConnection ( $ conparams , $ name ) ; self :: $ connectionMap [ $ name ] [ 'master' ] = $ con ; } return self :: $ connectionMap [ $ name ] [ 'master' ] ; }
Gets an already-opened write PDO connection or opens a new one for passed-in db name.

@param string $name The datasource name that is used to look up the DSN
from the runtime configuation file. Empty name not allowed.

@return PDO A database connection

@throws PropelException - if connection cannot be configured or initialized.
Gets an already - opened write PDO connection or opens a new one for passed - in db name .