Re: Problem in Many-Many Relationship
Re: Problem in Many-Many Relationship
- Subject: Re: Problem in Many-Many Relationship
- From: Meena Srinivasan <email@hidden>
- Date: Wed, 9 Apr 2003 17:27:02 +0200
I am still trying to get things done through
addObjectToBothSidesOfRelationshipWithKey. Correct me if my usage is
wrong.
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.
Thanks,
Meena.
On Mercredi, avr 9, 2003, at 01:55 Europe/Zurich, Radwar wrote:
currentRole.addToToUsers(selectedUser);
this.session().defaultEditingContext().saveChanges();
use the method
currentRole.addObjectToBothSidesOfRelationshipWithKey(object,
relationship_name) method, to properly set the foreign keys.
-Seejo
_______________________________________________
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.