Returns the primary key name(s) for this AR class.
This method should be overridden by child classes to define the primary key.
Note that an array should be returned even when it is a single primary key.
public static string[] primaryKey ( ) | ||
return | string[] |
The primary keys of this record. |
---|
public static function primaryKey()
{
return ['id'];
}