Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic SQL Sharding Support - Documentation of the wrapperClass parameter is invalid #2623

Closed
ivanbogomoloff opened this issue Jan 28, 2017 · 2 comments

Comments

@ivanbogomoloff
Copy link

ivanbogomoloff commented Jan 28, 2017

Invalid code here http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/sharding.html#generic-sql-sharding-support

Valid version must be

$conn = DriverManager::getConnection(array(
    'wrapperClass' => 'Doctrine\DBAL\Sharding\PoolingShardConnection',
    'driver'       => 'pdo_sqlite',
    'global'       => array('memory' => true),
    'shards'       => array(
        array('id' => 1, 'memory' => true),
        array('id' => 2, 'memory' => true),
    ),
    'shardChoser' => 'Doctrine\DBAL\Sharding\ShardChoser\MultiTenantShardChoser',
));
@deeky666
Copy link
Member

deeky666 commented Feb 6, 2017

Patch provide via #2641

@deeky666 deeky666 added this to the 2.6 milestone Feb 6, 2017
@deeky666 deeky666 self-assigned this Feb 6, 2017
@Ocramius Ocramius changed the title Generic SQL Sharding Support - Documentation wrapperClass invalid Generic SQL Sharding Support - Documentation of the wrapperClass parameter is invalid Jul 22, 2017
@github-actions
Copy link

github-actions bot commented Aug 4, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants