Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
yii
mongodb
ActiveRecord
getDb
yii\mongodb\ActiveRecord::getDb PHP Méthode
ActiveRecord Class Documentation
Afficher le fichier
Open project: yiisoft/yii2-mongodb
getDb()
public
static
méthode
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
Résultat
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