Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
yii
sphinx
ActiveRecord
primaryKey
yii\sphinx\ActiveRecord::primaryKey PHP 메소드
ActiveRecord 1 문서
파일 보기
프로젝트 열기: yiisoft/yii2-sphinx
primaryKey()
공개
정적인
메소드
The default implementation will return the primary key as declared in the Sphinx index, which is associated with this AR class. Note that an array should be returned even for a table with single primary key.
public
static
primaryKey
( ) :
string[]
리턴
string[]
the primary keys of the associated Sphinx index.
public static function primaryKey() { return [static::getIndexSchema()->primaryKey]; }
ActiveRecord
attributes
callKeywords
callSnippets
delete
deleteAll
equals
fetchSnippet
find
findBySql
getDb
getIndexSchema
getSnippet
getSnippetSource
indexName
insert
insertInternal
isTransactional
populateRecord
primaryKey
setSnippet
transactions
update
updateAll
updateInternal