Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 560 Bytes

File metadata and controls

22 lines (15 loc) · 560 Bytes

exists

Checks if the given entityName and id exists in the database, this method does not load the entity into session. A very useful approach to check for data existence.

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
}