On 18-Mar-09, at 8:25 PM, Johnny Miller wrote:

OK,

That was my mistake - I was using a regular EOEditingContext.

However, I now have a new issue >:)

At what point during the delete process can you access a relationship before it gets nullified?

I'm trying to grab it at canDelete and at validateForDelete but the relationship has already been nullified.

Thanks in advance,


mightDelete();

<http://webobjects.mdimension.com/wonder/api/er/extensions/eof/ERXGenericRecord.html#mightDelete() >
public void mightDelete()
Description copied from interface: ERXEnterpriseObjectCalled as part of the augmented transaction process. This method is called when deleteObject() is called on the editing context. The benefit over willDelete() is that in this method, the relationships are still intact. Mostly, at least, as it's also called when the deletes cascade.


;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:        http://www.linkedin.com/in/davidleber
twitter:        http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to