• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem in Many-Many Relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Problem in Many-Many Relationship
      • From: Art Isbell <email@hidden>
References: 
 >Re: Problem in Many-Many Relationship (From: Radwar <email@hidden>)

  • Prev by Date: Re: Problem in Many-Many Relationship
  • Next by Date: Re: action binding with conditionals
  • Previous by thread: Re: Problem in Many-Many Relationship
  • Next by thread: Re: Problem in Many-Many Relationship
  • Index(es):
    • Date
    • Thread