System:Model:getPrimaryKey

From Aspen Documentation

Returns the field marked as primary key for current table.

Since 1.0

Arguments

mixed getPrimaryKey ()

Returns

Returns either the field name or false if not set.

Examples

Example:

$this->APP->model->getPrimaryKey();