Re: toMany relationship returning null

From: Eric Schneider (eri..entralparksoftware.com)
Date: Wed Sep 07 2005 - 20:49:10 EDT

  • Next message: Gili: "Re: toMany relationship returning null"

    Gili,

    Sounds like the object was never registered, or somehow it's
    persistence state is transient. Normally, toMany relationships will
    always return an empty List if there are no related objects.

    Eric

    On Sep 7, 2005, at 4:02 PM, Gili wrote:

    > Hi,
    >
    > I'm expecting a toMany relationship to return an empty list if
    > empty and it seems to return null. Is this by design (I can't seem
    > to find it documented anywhere). Does this mean I have to check for
    > both null or an empty list everywhere in my code or is there an
    > easier way?
    >
    > Thanks,
    > Gili
    > --
    > http://www.desktopbeautifier.com/
    >



    This archive was generated by hypermail 2.0.0 : Wed Sep 07 2005 - 20:49:05 EDT