Re: Problem in Many-Many Relationship
Re: Problem in Many-Many Relationship
- Subject: Re: Problem in Many-Many Relationship
- From: Art Isbell <email@hidden>
- Date: Wed, 9 Apr 2003 09:52:56 -1000
On Wednesday, April 9, 2003, at 05:27 AM, Meena Srinivasan wrote:
currentRole. addObjectToBothSidesOfRelationshipWithKey(selectedUser,
"toUsers");
where the object selectedUser of type "Users" and
the relationship_name "toUsers" is the relationship between "Role" and
"Users"
If I am right in my usage (?), does this mean that there is no
physical reference to the object of type "UserRole" and webobjects
will take care of it.
If you have not modified the many-to-many relationship configured by
EOModeler, none of the relationships between Role and RoleUser and User
and RoleUser are class properties. The flattened Role.toUsers and
User.toRoles relationships are class properties. So there is no way to
access RoleUser objects in your WO app. Therefore, your usage is
correct and should be all that is necessary to add a User object to the
Role.toUsers relationship which includes a behind-the-scenes insertion
of a RoleUser object.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.