Re: ERXMigration Problem with Multiple Models
Re: ERXMigration Problem with Multiple Models
- Subject: Re: ERXMigration Problem with Multiple Models
- From: Aleksey Novicov <email@hidden>
- Date: Sun, 6 Apr 2008 18:52:59 -0700
Thanks Mike. Where is the signup for the Wonder list?
I do have a third model for accessing legacy data in a separate database, but on the same MySQL server. There are a couple of relationships that traverse models to the legacy data. But that third model does not use migrations at all.
I tried explicitly listing the third model in the model names list, and... it works! That fixed it.
Thanks! Aleksey
This should really be on the Wonder list rather than wo-dev, but I just committed a fix for this ... I saw this once before but didn't end up looking into it. Is it possible you are depending on another framework that is bringing in a migration that only is being discovered because of a relationship to a 3rd model? For instance, you are declaring Model1 and Model2, but do you have a relationship to a Model3 that also uses migrations (like ERAttachment or ERTaggable, maybe?). Anyway, that was the scenario that would cause this ... If you can track down that 3rd model and list it explicitly in the modelNames list, it would probably fix the problem for you also, or you can update Wonder after tonight's build and it should be properly fixed.
As an aside, you no longer have to declare MigrationClassPrefix for your models if the class name matches your EOModel name ...
ms
On Apr 6, 2008, at 4:43 PM, Aleksey Novicov wrote:
I love ERXMigration! But I seem to be having a problem when I use it
for multiple models. The models do not have any dependency on each
other, so I don't bother to implement modelDependencies() in either
of my Migration classes.
If I configure the settings so that the migration for only one model
runs, and not the other, everything runs fine. So it seems to be
gagging on the fact there are multiple models. Do I need to
configure some sort of default model dependency, even if there is
none? Both models refer to the same database, and the migrations are
both migration0.
Thanks,
Aleksey
|
_______________________________________________
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