yii\sphinx\ActiveRecord::primaryKey PHP Méthode

primaryKey() public static méthode

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[]
Résultat string[] the primary keys of the associated Sphinx index.
    public static function primaryKey()
    {
        return [static::getIndexSchema()->primaryKey];
    }