Commit 47be6972 authored by Steve Müller's avatar Steve Müller

fix Generic SQL Sharding Support documentation example

parent aec4faf2
...@@ -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