Flattened Relationships and stale data
Flattened Relationships and stale data
- Subject: Flattened Relationships and stale data
- From: Jake MacMullin <email@hidden>
- Date: Thu, 07 Oct 2004 09:56:32 +1000
I'm having a slight problem with flattened relationships and stale data.
Here's my scenario:
A Course has many registrations and each registration has many participants.
I've created a flattened relationship in Course defined as
'registrations.participants'
This kinda works. I launch my application and call course.participants() - I
get back the list of participants associated with the registrations for this
course - however if I then make any changes to a registration (add or remove
a participant), it isn't *always* reflected in the flattened relationship.
If I quit the application and launch it again, the flattened relationship
contains the right participants again.
Is this just the nature of flattened relationships? Would I be better off
adding a custom method to my Course class that gets the participants from
each registration and combines them in to a single array, rather than
flattening the relationship in EOModeler?
Regards,
Jake MacMullin
_______________________________________________
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