yii\sphinx\ActiveRecord::getDb PHP Метод

getDb() публичный статический Метод

By default, the "sphinx" application component is used as the Sphinx connection. You may override this method if you want to use a different Sphinx connection.
public static getDb ( ) : Connection
Результат Connection the Sphinx connection used by this AR class.
    public static function getDb()
    {
        return \Yii::$app->get('sphinx');
    }