yii\sphinx\ActiveRecord::primaryKey PHP Метод

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];
    }