We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e70cc commit dd7c555Copy full SHA for dd7c555
src/Query.php
@@ -66,7 +66,7 @@ class Query extends Component implements QueryInterface
66
* @return Connection connection instance.
67
*/
68
public function getDb($db = null){
69
- return $db === null ? $db : Yii::$app->get('mongodb');
+ return $db === null ? Yii::$app->get('mongodb') : $db;
70
}
71
72
/**
0 commit comments