• 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: 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.

References: 
 >Re: Problem in Many-Many Relationship (From: Meena Srinivasan <email@hidden>)

  • Prev by Date: Re: Problem matching against Oracle CLOB
  • Next by Date: Re: Problem in Many-Many Relationship
  • Previous by thread: Re: Problem in Many-Many Relationship
  • Next by thread: Re: Problem in Many-Many Relationship
  • Index(es):
    • Date
    • Thread