db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Lustig" <m...@marclustig.com>
Subject AW: how to tell the bo that a foreign collection must be reloaded?
Date Tue, 18 Feb 2003 20:41:04 GMT


> -----Urspr√ľngliche Nachricht-----
> Von: Peter S. Hamlen [mailto:phamlen@mail.com]
> Gesendet: Dienstag, 18. Februar 2003 19:39
> An: Turbine Torque Users List
> Betreff: Re: how to tell the bo that a foreign collection must be
> reloaded?
>
>
> Well, depending on what you're doing, there are several answers:
>
> 1)  If you get the foreign object from the collObjects list, then you
> don't need to do anything (because the object is still in the list and
> has been changed in place.)
>
> 2)  If you're adding or removing foreign objects, then you may need to
> reload the list.
>   a)   The easiest way is to use the addObject() and removeObject()
> methods in the user object.  This automatically adds/removes the foreign
> object from the collObjects list and no reload is necessary.

Thanks Peter. Do these methods actually add / remove a row from the table
immediately, or do they only affect the collection-object? If only the
collObjects is altered, how do I invoke the actual change to the database?

Marc


Mime
View raw message