Re: EO lastModifiedTS @ validateForUpdate?
Re: EO lastModifiedTS @ validateForUpdate?
- Subject: Re: EO lastModifiedTS @ validateForUpdate?
- From: David LeBer <email@hidden>
- Date: Thu, 29 Nov 2007 22:39:52 -0500
On 29-Nov-07, at 9:01 PM, Chuck Hill wrote:
On Nov 29, 2007, at 5:53 PM, Les Vogel wrote:
I'd like to keep a last update timestamp on my entities. Would
validateForSave | validateForUpdate be a good time to modify an
attribute?
Define good. :-) That violates an EOF commandment. You risk
confusing EOF. If you are using Wonder, there is a facility in
ERXEC to have it notify your object at a safe time to do this.
Use ERXGenericRecord from Wonder.
It has willUpdate, willInsert etc that are perfect for this sort of
thing.
They are called after saveChanges but before validation so it is safe
to make changes.
;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
--
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden