Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
yii
db
ActiveRecordInterface
primaryKey
yii\db\ActiveRecordInterface::primaryKey PHP Method
ActiveRecordInterface Interface Documentation
ファイルを表示
Open project: yiisoft/yii2
primaryKey()
public
static
method
Note that an array should be returned even when the record only has a single primary key. For the primary key **value** see
ActiveRecordInterface::getPrimaryKey
instead.
public
static
primaryKey
( ) :
string[]
return
string[]
the primary key name(s) for this AR class.
public static function primaryKey();
ActiveRecordInterface
attributes
delete
deleteAll
equals
find
findAll
findOne
getAttribute
getDb
getIsNewRecord
getOldPrimaryKey
getPrimaryKey
getRelation
hasAttribute
insert
isPrimaryKey
link
populateRelation
primaryKey
save
setAttribute
unlink
update
updateAll