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

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();
}
Clone this wiki locally