This method is used to evict all the collection or association data for the given entity name and collection name, from the secondary cache. If the primary key is specified, then, the collection or association data of the entity with the primary key is evicted.


ORM functions

See Also

ORMEvictEntityORMEvictQueriesEvict content from secondary cache in Caching in the Developing ColdFusion Applications

Function Syntax

ormevictcollection("<entity_name>", "<collection_name>", [primarykey])




entity name

Entity name of the persistent CFC.

collection name

Name of the collection in the component

primary key

Primary key of the collection or association data of the entity


To evict all the association or collection data of collection arts belonging to the component CArtists:

<cfset ORMEvictCollection("CArtists", "arts")>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy