Hi all,

how do I correctly remove objects from n:m relations?

I have the setup A <-- 1:n --> AB <-- m:1 --> B

Torque generates class A including methods addAB(AB o) and getABs().

Adding via the addAB method works fine, when I call a.save() the added
AB object is saved also.

However, removing AB objects from A does not work for me. Since there is
no removeAB method I use the following code:

Vector allABs = a.getABs();
allABs.removeAllElements();
a.save();

The AB objects are not being deleted from table AB.

What do I need to do to make this work?

Thanks,
-Maik

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to