View definition

(*Scope).PrimaryField

Defined in github.com/jinzhu/gorm/scope.go

Description

PrimaryField return scope's main primary field, if defined more that one primary fields, will return the one having column name `id` or the first one

PrimaryField is referenced in 5 repositories

github.com/jinzhu/gorm github.com/qor/qor github.com/qor/publish

...