Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting a lookup type object...




On Nov 10, 2005, at 1:17 PM, James Cicenia wrote:

Hello -

What is the most efficient way of nullifying the back pointing relationship from a lookup object?

For instance I have a table of potential callers. All tickets have a ticketcaller object that references
a caller object. However, I don't have a to-many relationship back to TicketCaller.


Do I have to do a fetch instead and then nullify? Or is there some great EOUtilities method I am missing.


Fetch then nullify is the safe thing to do to keep the object graph consistent (within that one instance/EOF stack). Otherwise, caring not a whit about object graph consistency, check out the EOAdaptorChannel method
public abstract int updateValuesInRowsDescribedByQualifier (NSDictionary row,
EOQualifier qualifier,
EOEntity entity)


Chuck


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


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: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Deleting a lookup type object... (From: James Cicenia <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.