protected function selectDatabase($name) { return Yii::createObject(['class' => 'yii\\mongodb\\Database', 'name' => $name, 'connection' => $this]); }