entityDelete

Deletes the record from the database for the specified entity. Depending on the cascade attribute specified in the mapping, it deletes the associated objects also.

entityDelete(entity) → returns void

Argument Reference

entity variableName
Required

Name of the entity being deleted.

Examples
Sample code invoking the entityDelete function

Loads an ORM entity from the database, then deletes it

user = entityLoadByPK("User", userID);
entityDelete(user);

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

Fork me on GitHub