ormFlush

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

ormFlush([datasource]) → returns void

Argument Reference

datasource string

Name of the data source used for the session. If not defined, the default datasource defined in Application.cfc/cfapplication is used.

Examples
Sample code invoking the ormFlush function

ormFlush();

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub