Re: processRecentChanges makes me sad
Re: processRecentChanges makes me sad
- Subject: Re: processRecentChanges makes me sad
- From: Ramsey Gurley <email@hidden>
- Date: Thu, 05 Dec 2013 18:01:11 -0700
On Dec 4, 2013, at 2:18 AM, Hugi Thordarson <email@hidden> wrote:
> Hi all.
>
> I’ve been attempting to automate the setting of some common attributes in my EOs, like creationDate, createdByUser etc. etc. Usually one might populate attributes like that in awakeFromInsertion, but that's boilerplate I’d rather not add to my EO classes. So instead, I’ve taken a different route.
> Anyone have any happy litle ideas on how to tackle the problem?
Y u reinvent wonder? See ERXEntityClassDescription:
ERXDefaultValues = {
creationDate = “@now”;
createdByUser = “@threadStorage.actor”;
}
:-)
_______________________________________________
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