Hi,

I'm using WO 4/NT

I have been using WO as a read only portion of a mixed WO/PERL environment.
I have had lots of issues with invalidating objects to refresh their
relations. In thinking about changes to make in what is PERL and what is WO
I have the following questions:

Setup:
If I have an object User that object has a Many-to-many relationship with
Group when I remove a User from aGroup I believe I would have to call
something like:
        [aGroup remove:User fromBothSidesOfRelationsip:toUsers]
If I did not do this but instead did:
        [aGroup remove:User fromRelationsip:toUsers]
It is my impression that the User object in question would still have
aGroup in it's toGroup relationship.

If setup is True then:
Does this mean that if I want to delete a User object I must know in
advance every object that is related to it so that I can:
[UnknownObject remove:User fromRelationship:Unknown]
Or does EOF/WO deal with this for me?

A related question is:

If I subclass(Single table inheritance) User into ActiveUser and
InActiveUser. Then I have a Group have relationships to all 3 classes
(toActiveUsers,toInActiveUsers,toUsers).
If I delete a user from ActiveUser do I also need to manually remove the
User from the relationship toUsers? or since ActiveUser is a subclass of
User does EOF "Know" that removing an ActiveUser implies removing a User
also.

Bob Stuart
Lockheed Martin

Reply via email to