Skip to content

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

@ivanbogomoloff

Description

@ivanbogomoloff

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',
));

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions