Skip to content
Jorge Reyes edited this page May 29, 2015 · 3 revisions

Checks if the given entityName and id exists in the database

###Returns

  • This function returns boolean

###Arguments

Key Type Required Default Description
entityName any Yes ---
id any Yes ---

###Examples

if( ormService.exists("Account",123) ){
 // do something
}
Clone this wiki locally