Multiple foreign keys

Topics: Developer Forum
Aug 29, 2007 at 9:31 AM
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 ,
Aug 29, 2007 at 1: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.

Aug 29, 2007 at 2: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.
Aug 31, 2007 at 4:25 AM
It's done.
Aug 31, 2007 at 11:49 AM
That was fast, thanx!!