Re: Pre-Fetching and To-Manys
Re: Pre-Fetching and To-Manys
- Subject: Re: Pre-Fetching and To-Manys
- From: Chuck Hill <email@hidden>
- Date: Wed, 24 Sep 2008 15:02:44 -0700
On Sep 24, 2008, at 1:47 PM, Andrew Lindesay wrote:
Hello Chuck;
OK thanks for that -- so I guess there's no way to safely refresh
those to-manys then? I know Mike has pointed out before that
invalidating the EO's will cause problems when the system tries to
compare 'known snapshots' with changes during an edit.
Manually, there is. See
ERXEOControlUtilities
.clearSnapshotForRelationshipNamed(EOEnterpriseObject eo, String
relationshipName) in Wonder.
Chuck
I can't 100% remember what the case in WO 5.3.3 was and I could be
wrong, but has anybody else had 5.4.X problems with running a
fetch specification like this;
( <class
com
.webobjects.eocontrol.EOFetchSpecification(entityName=XYZAdminUser,
qualifier=((id = 22)),
isDeep=true,
usesDistinct=false,
sortOrdering=null,
hints=null,
_prefetchingRelationshipKeyPaths = ( adminUserPermissions ))> )
It seems like the relationship "adminUserPermissions" from the
(id=22) instance of the entity "XYZAdminUser" is not updating the
"adminUserPermissions" relationship as the fetch runs.
...
No, it updates the contents of the objects already in that
relationships. Which is rather weak.
___
Andrew Lindesay
www.lindesay.co.nz
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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