public function initialize()
{
$this->setReadConnectionService('dbSlave');
$this->setWriteConnectionService('dbMaster');
}
I have many dbSlaves, How to set readConnections?
In APIs ,I find selectReadConnection, but I don't know when and where it called.I always get Service 'db' wasn't found in the dependency injection container
.