yii\mongodb\Database::selectCollection PHP Method

selectCollection() protected method

Selects collection with given name.
protected selectCollection ( string $name ) : Collection
$name string collection name.
return Collection collection instance.
    protected function selectCollection($name)
    {
        return Yii::createObject(['class' => 'yii\\mongodb\\Collection', 'database' => $this, 'name' => $name]);
    }