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

Evict an entity from session, the id can be a string or structure for the primary key You can also pass in a collection name to evict from the collection

###Returns

  • This function returns void

###Arguments

Key Type Required Default
entityName string Yes ---
collectionName string No ---
id any No ---

###Examples

ormService.evict(entityName="Account",account.getID());
ormService.evict(entityName="Account");
ormService.evict(entityName="Account", collectionName="MyAccounts");
Clone this wiki locally