Defined in: yii\db\ActiveRecordInterface::primaryKey()
Returns the primary key name(s) for this AR class.
Note that an array should be returned even when the record only has a single primary key.
For the primary key value see getPrimaryKey() instead.
public abstract static string[] primaryKey ( ) | ||
return | string[] |
The primary key name(s) for this AR class. |
---|
public static function primaryKey();