[FLOW3-general] What is MasterSlaveConnection ?
Robin Lehrmann
role at vkf-renzel.de
Wed Aug 15 14:15:58 CEST 2012
Hey together!
What does the class MasterSlaveConnection in
\Doctrine\DBAL\Connections\MasterSlaveConnection do?
Can I create a second connection to an other database ?
@example
*
* $conn = DriverManager::getConnection(array(
* 'wrapperClass' => 'Doctrine\DBAL\Connections\MasterSlaveConnection',
* 'driver' => 'pdo_mysql',
* 'master' => array('user' => '', 'password' => '', 'host' => '',
'dbname' => ''),
* 'slaves' => array(
* array('user' => 'slave1', 'password', 'host' => '', 'dbname'
=> ''),
* array('user' => 'slave2', 'password', 'host' => '', 'dbname'
=> ''),
* )
* ));
If the class can create a second connection.
explain me how
More information about the FLOW3-general
mailing list