ormClearSession

ORMClearSession removes all the entities that are loaded or created in the session. This clears the first level cache and removes the objects that are not yet saved to the database.

ormClearSession([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 ormClearSession function

ormClearSession();

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

Fork me on GitHub