mongodb\Database getCollection()

getCollection() public method

Returns the Mongo collection with the given name.

public yii\mongodb\Collection getCollection ( $name, $refresh = false )
$name string

Collection name

$refresh boolean

Whether to reload the collection instance even if it is found in the cache.

return yii\mongodb\Collection

Mongo collection instance.

doc_Yii
2016-10-30 17:08:06
Comments
Leave a Comment

Please login to continue.