Re: Relationship across model boundaries failing
Re: Relationship across model boundaries failing
- Subject: Re: Relationship across model boundaries failing
- From: Mike Schrag <email@hidden>
- Date: Fri, 30 May 2008 21:39:27 -0400
Now I'm just going to have to go look into fixing this in Wonder.
How much effort is expended being scared of inverse faulting (which
is a problem that seems like it really shouldn't be all THAT hard to
fix with a little elbow grease)?
It will definitely take a little more magic to pull off completely and
testing to see what the side-effects will be, but I have a prototype
that shows this is pretty straightforward to do. The one catch is
that includeObjectsInPropertyWithKey (or whatever that method is) does
a containsObject(..) call before adding. To answer that question you
have to fault the array. However, it appears to work OK if I just
make that assume false if it's not faulted at that point. The
downside of that is that willChange is called even though once the
array is eventually faulted, it may turn out that it DIDN'T change
(because it defers the uniqueness check until the fault actually
fires). So basically you get too many willChange calls if you add
duplicates to an unfaulted array. This doesn't appear to actually be
a problem in the limited testing I did, though. Weekend time ...
ms
_______________________________________________
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