Multiple foreign keys

Topics: Developer Forum
Aug 29, 2007 at 10:31 AM
Hi,
i am following this project for a bit, and very interested in using it, however i have come accross a serious problem (or perhaps lack of understanding on my side). It is often needed to have more than one foreign key in a table, but when i tryed to implement that, i got an exception saying that there can be only one 'BelongsTo' on a given object. Am I using it wrong, or is it not possible in the current release? If it is not possible, are you planning to add this feature in upcoming releases?

Thanx ,
Antanas
Coordinator
Aug 29, 2007 at 2:22 PM
Yes, it's a question. I implemeted it as only one foreign key because it is easy and in my project it only need one foreign key. So by now it is not supported multiple foreign keys.

It will implemented in next version.

thx.
Aug 29, 2007 at 3:26 PM
I was playing with the source code today, and have made changes to implement it, i have only tested it to create foreign keys properly, havent done any extensive testing yet.
Would be great to see it in the next version, alot of projects require this feature.
Coordinator
Aug 31, 2007 at 5:25 AM
It's done.
Aug 31, 2007 at 12:49 PM
That was fast, thanx!!