public function connect($id, array $params)
    {
        if (isset($params['connection'])) {
            $connectionParams = $params['connection'];
        } else {
            $connectionParams = $params;
            $connectionParams['driver'] = str_replace('dbal_', '', $connectionParams['driver']);
        }

        $this->persistentConnect($connectionParams);

        return new common_persistence_SqlPersistence($params, $this);
    }
public function connect($id, array $params)
    {
        if (isset($params['connection'])) {
            $connectionParams = $params['connection'];
        } else {
            $connectionParams = $params;
            $connectionParams['driver'] = str_replace('dbal_', '', $connectionParams['driver']);
        }

        $this->persistentConnect($connectionParams);

        return new common_persistence_SqlPersistence($params, $this);
    }
public function connect ( $ id , array $ params ) { if ( isset ( $ params [ 'connection' ] ) ) { $ connectionParams = $ params [ 'connection' ] ; } else { $ connectionParams = $ params ; $ connectionParams [ 'driver' ] = str_replace ( 'dbal_' , '' , $ connectionParams [ 'driver' ] ) ; } $ this -> persistentConnect ( $ connectionParams ) ; return new common_persistence_SqlPersistence ( $ params , $ this ) ; }
Connect to Dbal

@param string $id
@param array $params
@return common_persistence_Persistence|common_persistence_SqlPersistence
@throws \Doctrine\DBAL\DBALException
Connect to Dbal