exists
Last updated
Was this helpful?
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.
This function returns boolean
entityName
any
Yes
---
id
any
Yes
---
if( ormService.exists("Account",123) ){
// do something
}Last updated
Was this helpful?
Was this helpful?