English English Spanish EspañolKorea한국어
Straker»Company»Blog»2005» Deleting multiple instances of a SOF object

Deleting multiple instances of a SOF object

I faced this issue today. I have two independent SOF objects (say, object1, and object2) objects, and one SOF objects that linked the these two (say, linkedObject - which contains object1 and object2 properties). I had to delete instances in linkedObject where object1 had a particular value (called "myUUID"). This can be done through plugging the followin in the cfc for linkedObject:
<cfset getPersistence().deleteobjects(class=init(),object1="#myUUID#")>
For more information on the deleteObjects function, look at API docs for shadomx.core.objects.persistence.dbpersistence.


Comments

There are no comments for this page as yet.

Add a comment