Hi,

  Can't you use Wonder migrations? I have the vague recollection I did that on 
a past life for doing tasks like that. AFAIK there were two methods you could 
define on a migration, the first before EOF loaded the models, and the second 
one after. But I don't touch that for quite some time now, so I may be confused.

  Regards,

Miguel Arroz

On Jun 28, 2014, at 14:48, Hugi Thordarson <[email protected]> wrote:

> Am I the only one who writes a direct action class every time I need to do 
> EOF-related one-time tasks in my apps, such as DB cleanup, imports, exports 
> etc?
> 
> After writing my one-millionth task like this tonight I just realized how 
> deeply, horribly wrong it is, and before I start finding better ways on my 
> own I thought I'd hear from the community. Can anyone recommend a different 
> way? Are people using ERXExtensions.initEOF() or ERXExtensions.initApp() for 
> stuff like this? Or something else?
> 
> Paraphrased: You have an EOModel and you need to execute a single, one-time 
> task using the model (probably throwing the code out afterwards). What do you 
> do?
> 
> Cheers,
> - hugi
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com
> 
> This email sent to [email protected]



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

This email sent to [email protected]

Reply via email to