Lucee Function Reference

ormflush()

Flushes the current ORM session. ORMFlush flushes all the pending CRUD operations in that request. Any changes made in the objects, in the current ORM session, are saved to the database.

Example

ormflush([string datasource]):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
datasource string  No datasource used for the session, if nor defined the datasource defined in application.cfc/cfapplication is used.