access to flattened relationship EOs
access to flattened relationship EOs
- Subject: access to flattened relationship EOs
- From: Zak Burke <email@hidden>
- Date: Thu, 08 Nov 2007 19:09:50 -0500
I have two EO classes joined in a flattened many-to-many relationship
(User <-->> UserGroupJoin <<--> Group). UserGroupJoin is dead-simple --
nothing but foreign keys to User and Group.
I want to log whenever one of the join items is created or removed. The
UI for this is a UserEdit page with Group items in checkboxes, and,
likewise, a GroupEdit page with User items in checkboxes.
I use a custom EC subclass, so I thought I'd create the log by checking
for UserGroupJoin items in insertedObjects() and deletedObjects() during
saveChanges(). Well, they never show up there. So then I tried adding
logging to UserGroupJoin.awakeFromInsertion(). That isn't called either.
Does anybody know how I can get at this information?
zak.
_______________________________________________
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