• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pre-Fetching and To-Manys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Pre-Fetching and To-Manys (From: Andrew Lindesay <email@hidden>)
 >Re: Pre-Fetching and To-Manys (From: Chuck Hill <email@hidden>)
 >Re: Pre-Fetching and To-Manys (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: still crazy after all these years
  • Next by Date: Re: still crazy after all these years
  • Previous by thread: Re: Pre-Fetching and To-Manys
  • Next by thread: restoring a page
  • Index(es):
    • Date
    • Thread