8000 getKey · coldbox-modules/cborm Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Jorge Reyes edited this page May 29, 2015 · 3 revisions

Returns the key (id field) of a given entity, either simple or composite keys. If the key is a simple pk then it will return a string, if it is a composite key then it returns an array

###Returns

  • This function returns any

###Arguments

Key Type Required Default Description
entityName string Yes ---

###Examples

var pkField = ormService.getKey( "User" );
Clone this wiki locally
0