Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
yii
mongodb
ActiveRecord
getDb
yii\mongodb\ActiveRecord::getDb PHP Method
ActiveRecord Class Documentation
Datei anzeigen
Open project: yiisoft/yii2-mongodb
getDb()
public
static
method
By default, the "mongodb" application component is used as the Mongo connection. You may override this method if you want to use a different database connection.
public
static
getDb
( ) :
Connection
return
Connection
the database connection used by this AR class.
public static function getDb() { return \Yii::$app->get('mongodb'); }
ActiveRecord
attributes
collectionName
delete
deleteAll
deleteInternal
dumpBsonObject
equals
find
getCollection
getDb
insert
insertInternal
primaryKey
toArray
toArrayInternal
updateAll
updateAllCounters
updateInternal