src/DependencyInjection/TypeORMExtension.js
/**
     * Process connections configuration options.
     *
     * @param {*} config
     * @param {Jymfony.Component.DependencyInjection.ContainerBuilder} container
     *
     * @private
     */
Process connections configuration options.

@private
Process connections configuration options . @private
_processConnections(config, container) {
        const connections = config.connections;
        if (0 === Object.keys(connections).length) {
            throw new InvalidConfigurationException('No connection has been defined in TypeORM configuration');
        }
        const connectionMappings = {};
        for (const [ name, connection ] of __jymfony.getEntries(connections)) {
            let mappings = [];
            for (const mapping of Object.values(connection.mappings)) {
                mappings = mappings.concat([ ...this._processNamespace(mapping.namespace, container) ]);
            }
            connection.mappings = mappings;
            connectionMappings[name] = connection;
        }
        container
            .getDefinition(Jymfony.Bundle.TypeORMBundle.Connection.ConnectionManager)
            .addArgument(connectionMappings)
            .addArgument(config.default_connection)
        ;
    }
_processConnections ( config , container ) { const connections = config . connections ; if ( 0 === Object . keys ( connections ) . length ) { throw new InvalidConfigurationException ( 'No connection has been defined in TypeORM configuration' ) ; } const connectionMappings = { } ; for ( const [ name , connection ] of __jymfony . getEntries ( connections ) ) { let mappings = [ ] ; for ( const mapping of Object . values ( connection . mappings ) ) { mappings = mappings . concat ( [ ... this . _processNamespace ( mapping . namespace , container ) ] ) ; } connection . mappings = mappings ; connectionMappings [ name ] = connection ; } container . getDefinition ( Jymfony . Bundle . TypeORMBundle . Connection . ConnectionManager ) . addArgument ( connectionMappings ) . addArgument ( config . default_connection ) ; }
Process connections configuration options.
Process connections configuration options .