Many-to-many across ECs
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