Open rjanot opened 10 years ago
If you use Doctrine DBAL for your provider implementation, it already supports MasterSlaveConnection
Great, thanks for the advice !
A nice improvement would be to make the bundle rely on DoctrineBundle to configure the connection instead of doing it itself. Instead of passing the connection config when configuring the provider, it should be possible to pass the name of a connection managed by DoctrineBundle (passing basic options explicitly can still be supported for BC). this way, it is possible to support all DBAL features as soon as the Doctrine team supports them
Define masters and slaves for databases and allow read from slaves (and eventually from master) Some parameters are already existing , but not functionnal