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 · 1 comment

Comments

@ivanbogomoloff
Copy link

@ivanbogomoloff 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 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
@deeky666 deeky666 added PR Created Bug and removed Bug labels 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.