Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
yii
mongodb
ActiveRecord
primaryKey
yii\mongodb\ActiveRecord::primaryKey PHP Метод
Документация по классу ActiveRecord
Показать файл
Открыть проект
primaryKey()
публичный
статический
Метод
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[]
Результат
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