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.

ormFlush([datasource]) → returns void

Argument Reference

datasource string

datasource used for the session, if not defined the datasource defined in Application.cfc/cfapplication is used.

Sample code invoking the ormFlush function


Fork me on GitHub