Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
yii
mongodb
ActiveRecord
primaryKey
yii\mongodb\ActiveRecord::primaryKey PHP Method
ActiveRecord Class Documentation
Exibir arquivo
Open project: yiisoft/yii2-mongodb
primaryKey()
public
static
method
The default implementation will return ['_id']. Note that an array should be returned even for a collection with single primary key.
public
static
primaryKey
( ) :
string[]
return
string[]
the primary keys of the associated Mongo collection.
public static function primaryKey() { return ['_id']; }
ActiveRecord
attributes
collectionName
delete
deleteAll
deleteInternal
dumpBsonObject
equals
find
getCollection
getDb
insert
insertInternal
primaryKey
toArray
toArrayInternal
updateAll
updateAllCounters
updateInternal