getDb() public static method
Returns the Mongo connection used by this AR class.
By default, the "mongodb" application component is used as the Mongo connection. You may override this method if you want to use a different database connection.
public static yii\mongodb\Connection getDb ( ) | ||
---|---|---|
return | yii\mongodb\Connection |
The database connection used by this AR class. |
Please login to continue.