public function getReadConnection($model) { if ($this->getDI()->getDbSlave()) { $this->setReadConnectionService($model, 'dbSlave'); } return parent::getReadConnection($model); }