Hey !
Read http://objectstyle.org/cayenne/lists/cayenne-user/2006/06/0106.html
It describes how to remove objects without using removeFrom ;)

Cheers
Marcin

On 30/06/2006, at 11:24 AM, Gary Jarrel wrote:

Hey All

It's Friday, and I guess my thinking process has already switched into
weekend mode, but whats the best way to clear all records in a
relationship. I.e. the following objects

Slideshow -> (to may) -> Image      (join table in betwen)

Slideshow.getImages() returns a list of images, how can I easily clear
this list, cause the good old iterate over the list and remove using
slideshow.removeFromImages(Image)  doesn't seem to work as the list
decreases hence sending the cursor off.

Sorry if the question is too obvious. :)

- garyj

-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001


Reply via email to