Re: My Laziness is Getting the Better of Me

From: Marcin Skladaniec (marci..sh.com.au)
Date: Thu Jun 29 2006 - 21:42:13 EDT

  • Next message: Gary Jarrel: "Re: My Laziness is Getting the Better of Me"

    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



    This archive was generated by hypermail 2.0.0 : Thu Jun 29 2006 - 21:42:38 EDT