cborm
v4.x
Search
⌃K
Links

isSessionDirty

Checks if the session contains dirty objects that are awaiting persistence

Returns

  • This function returns boolean

Arguments

Key
Type
Required
Default
Description
datasource
string
false
---
The default or specific datasource to use

Examples

// Check if by this point we have a dirty session, then flush it
if( ormService.isSessionDirty() ){
ORMFlush();
}