yii\db\ActiveRecordInterface::primaryKey PHP Méthode

primaryKey() public static méthode

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[]
Résultat string[] the primary key name(s) for this AR class.
    public static function primaryKey();