Hello, I have three tables, A, AB, and B. The way they are relationed is the next:
A has an one-to-many with AB.
AB has many-to-one with A and other with B.
B has an one-to-many with AB.
When I remove an object of class A, it also delete all of class AB (what is correct), but the problem comes when it deletes all of class B. I don't want all the Bs to be deleted, because there can be another AB relationed with those Bs. What I mean is something like delete-orphan for many-to-one relations (I know that it is not supported).
Thanks.
|