Re: Models confused?
Re: Models confused?
- Subject: Re: Models confused?
- From: Jesse Tayler <email@hidden>
- Date: Wed, 22 Dec 2010 15:12:12 -0500
Thanks Travis,
I had just found that property in the java files somewhere and it does seem to make the save reliable.
Nice.
(seems like a required bit for those using Mysql, as I'm not aware of any downside.)
However, I still had to avoid that one particular constraint in order to get the table's to build, which seems to indicate I have at least one database issue remaining, no?
eogen lines like this run fine:
commentTable.addForeignKey("mtlyID", "MTLY_POST", "id");
If I avoid this key constraint, say, by commenting out the line, the database migrates without error -
userTable.addForeignKey("posterId", "ERAttachment", "id");
and after that, if I then use the save sort ordering, the file upload functions and I haven't got an error in two or three tries with it.
doesn't the fact that I can't run that SQL bit there mean there's a mismatch or something on the database itself?
mysql reports error 105 which I thought meant I had a mismatch of key types, but for the life of me, I don't see anything in the model or the database...hmm...
_______________________________________________
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