getDatabase() public method
Returns the MongoDB database with the given name.
| public yii\mongodb\Database getDatabase ( $name = null, $refresh = false ) | ||
|---|---|---|
| $name | string|null |
Database name, if null default one will be used. |
| $refresh | boolean |
Whether to reestablish the database connection even, if it is found in the cache. |
| return | yii\mongodb\Database |
Database instance. |
Please login to continue.