Commit 609a8d31 authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #2641 from deeky666/DBAL-2623

[DBAL-2623] Fix Generic SQL Sharding Support documentation example
parents aec4faf2 47be6972
...@@ -453,14 +453,14 @@ See the configuration for a sample sharding connection: ...@@ -453,14 +453,14 @@ See the configuration for a sample sharding connection:
use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\DriverManager;
$conn = DriverManager::getConnection(array( $conn = DriverManager::getConnection(array(
'wrapperClass' => 'Doctrine\Shards\DBAL\PoolingShardConnection', 'wrapperClass' => 'Doctrine\DBAL\Sharding\PoolingShardConnection',
'driver' => 'pdo_sqlite', 'driver' => 'pdo_sqlite',
'global' => array('memory' => true), 'global' => array('memory' => true),
'shards' => array( 'shards' => array(
array('id' => 1, 'memory' => true), array('id' => 1, 'memory' => true),
array('id' => 2, 'memory' => true), array('id' => 2, 'memory' => true),
), ),
'shardChoser' => 'Doctrine\Shards\DBAL\ShardChoser\MultiTenantShardChoser', 'shardChoser' => 'Doctrine\DBAL\Sharding\ShardChoser\MultiTenantShardChoser',
)); ));
You have to configure the following options: You have to configure the following options:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment