public getReadConnectionService ( ManaPHP\Mvc\ModelInterface | string $model ) : string | ||
$model | ManaPHP\Mvc\ModelInterface | string | |
Результат | string |
public function getReadConnectionService($model)
{
$modelName = is_string($model) ? $model : get_class($model);
return isset($this->_readConnectionServices[$modelName]) ? $this->_readConnectionServices[$modelName] : 'db';
}