ManaPHP\Mvc\Model\Manager::getReadConnectionService PHP Method

getReadConnectionService() public method

Returns the connection service name used to read data related to a model
public getReadConnectionService ( ManaPHP\Mvc\ModelInterface | string $model ) : string
$model ManaPHP\Mvc\ModelInterface | string
return string
    public function getReadConnectionService($model)
    {
        $modelName = is_string($model) ? $model : get_class($model);
        return isset($this->_readConnectionServices[$modelName]) ? $this->_readConnectionServices[$modelName] : 'db';
    }