WordPress\ORM\BaseModel::get_primary_key PHP Method

get_primary_key() public static method

Get the column used as the primary key, defaults to 'id'.
public static get_primary_key ( ) : string
return string
    public static function get_primary_key()
    {
        return 'id';
    }