cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin Skladaniec <mar...@ish.com.au>
Subject Re: My Laziness is Getting the Better of Me
Date Fri, 30 Jun 2006 01:42:13 GMT
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



Mime
View raw message