mongodb\Connection getDatabase()

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.

doc_Yii
2016-10-30 17:07:58
Comments
Leave a Comment

Please login to continue.