• 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
Many-to-many across ECs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Many-to-many across ECs


  • Subject: Many-to-many across ECs
  • From: Drew Thoeni <email@hidden>
  • Date: Sun, 6 Feb 2005 09:23:39 -0500

Hello all,

I have a many-to-many (students-to-classes) and I have the class list placed into an EC at the application level (since it's established, read-only, and shared by all users). I want to have the student be able to click a "join class" link and it updates the relationship showing the student is now in that class.

The code I'm using is below (where aClass is in the application EC)

aClass.addObjectToBothSidesOfRelationshipWithKey(session.currentStudent, "students");

It is probably obvious to many of you but WO says:

"Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext"

I've tried to create a Class object in my shared EC, but it seems to be making only a reference to the object in the App's EC.

What am I missing?

Regards,

Drew

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Many-to-many across ECs
      • From: Travis Britt <email@hidden>
  • Prev by Date: Learning resources
  • Next by Date: Re: recuperate session from a directAction
  • Previous by thread: Re: Learning resources
  • Next by thread: Re: Many-to-many across ECs
  • Index(es):
    • Date
    • Thread