public static function install(array $driverConfiguration)
    {
        // Check if input is valid
        if (false === self::validate($driverConfiguration, ['classes'])) {
            throw new \Doozr_Exception(
                sprintf('Configuration invalid for driver "%s".', __CLASS__)
            );
        }

        $paths             = [$driverConfiguration['entities']];
        $isDevelopmentMode = (\Doozr_Kernel::APP_ENVIRONMENT_DEVELOPMENT === DOOZR_APP_ENVIRONMENT);

        // Connection configuration
        $configuration = Setup::createAnnotationMetadataConfiguration($paths, $isDevelopmentMode);

        foreach ($driverConfiguration['connections'] as $id => $connectionData) {
            self::$connection[$id] = EntityManager::create($connectionData, $configuration);
        }

        // Return the whole connection(s) array. Can be accessed in Model via getRegistry()->getModel()->getHandle()
        return self::$connection;
    }
public static function install(array $driverConfiguration)
    {
        // Check if input is valid
        if (false === self::validate($driverConfiguration, ['classes'])) {
            throw new \Doozr_Exception(
                sprintf('Configuration invalid for driver "%s".', __CLASS__)
            );
        }

        $paths             = [$driverConfiguration['entities']];
        $isDevelopmentMode = (\Doozr_Kernel::APP_ENVIRONMENT_DEVELOPMENT === DOOZR_APP_ENVIRONMENT);

        // Connection configuration
        $configuration = Setup::createAnnotationMetadataConfiguration($paths, $isDevelopmentMode);

        foreach ($driverConfiguration['connections'] as $id => $connectionData) {
            self::$connection[$id] = EntityManager::create($connectionData, $configuration);
        }

        // Return the whole connection(s) array. Can be accessed in Model via getRegistry()->getModel()->getHandle()
        return self::$connection;
    }
public static function install ( array $ driverConfiguration ) { // Check if input is valid if ( false === self :: validate ( $ driverConfiguration , [ 'classes' ] ) ) { throw new \ Doozr_Exception ( sprintf ( 'Configuration invalid for driver "%s".' , __CLASS__ ) ) ; } $ paths = [ $ driverConfiguration [ 'entities' ] ] ; $ isDevelopmentMode = ( \ Doozr_Kernel :: APP_ENVIRONMENT_DEVELOPMENT === DOOZR_APP_ENVIRONMENT ) ; // Connection configuration $ configuration = Setup :: createAnnotationMetadataConfiguration ( $ paths , $ isDevelopmentMode ) ; foreach ( $ driverConfiguration [ 'connections' ] as $ id => $ connectionData ) { self :: $ connection [ $ id ] = EntityManager :: create ( $ connectionData , $ configuration ) ; } // Return the whole connection(s) array. Can be accessed in Model via getRegistry()->getModel()->getHandle() return self :: $ connection ; }
The install routine of the driver. All available information for the driver is passed as configuration.

@param array $driverConfiguration Configuration of model

@throws \Doctrine\ORM\ORMException

@author Benjamin Carl <opensource@clickalicious.de>

@return EntityManager[] An collection of EntityManagers indexed by connection Id
@static
The install routine of the driver . All available information for the driver is passed as configuration .