function connect($id, array $params) 
    {

        $this->id = $id;

        $this->persistence = \common_persistence_SqlPersistence::getPersistence($params['persistenceId']);

        unset($params['persistenceId']);

        return new \common_persistence_SqlPersistence($params, $this);
    }
function connect($id, array $params) 
    {

        $this->id = $id;

        $this->persistence = \common_persistence_SqlPersistence::getPersistence($params['persistenceId']);

        unset($params['persistenceId']);

        return new \common_persistence_SqlPersistence($params, $this);
    }
function connect ( $ id , array $ params ) { $ this -> id = $ id ; $ this -> persistence = \ common_persistence_SqlPersistence :: getPersistence ( $ params [ 'persistenceId' ] ) ; unset ( $ params [ 'persistenceId' ] ) ; return new \ common_persistence_SqlPersistence ( $ params , $ this ) ; }
Allow to connect the driver and return the connection

@param string $id
@param array  $params

@return \common_persistence_Persistence
Allow to connect the driver and return the connection