On 6/28/07, Jeff Balogh <[EMAIL PROTECTED]> wrote:
> I was messing around with the new branch and found some problems.
Argl, browsing my old Elixir mail, I found this one. I'm truly sorry
for replying so late.
> Here's the code:
>
> from elixir import *
> class Group(Entity):
> has_field('name', Unicode(), primary_key=True)
>
> class Test(Entity):
> belongs_to('person', of_kind="Person",
> column_kwargs={'primary_key':True})
>
> class Person(Entity):
> belongs_to('group', of_kind="Group",
> column_kwargs={'primary_key':True})
> using_options(auto_primarykey=False)
> 1) Without auto_primarykey=False in Person, the automatic 'id' field
> is created; I didn't expect that to happen, since there is a primary
> key specified.
> 2) Test does not get a Foreign Key from Person when this is run, as
> the Test->Person relationship is resolved before the Person->Group
> relationship, as you can see here:
That was to be expected, even though I said the branch would help
solve those issues easier, I didn't actually solve those at that time
(I did solve the order_by with a belongs_to column but not this one).
Yeah pretty stupid on my part, I know. Anyway, those should be fixed
now.
> Sorry I don't have anything more to offer than problems. I'll look at
> how I can help when I get some time.
Thanks, trying it and reporting problems is already helping a lot.
--
Gaƫtan de Menten
http://openhex.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---