Elixir doesn't seem to be correctly setting up backreferences based on
a belongs_to/has_many relationship.

Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:12:50)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from elixir import *
>>> metadata.connect("sqlite:///:memory:")
>>> class Foo (Entity):
...     has_many("bars", of_kind="Bar")
...
>>> class Bar (Entity):
...     belongs_to("foo", of_kind="Foo")
...
>>> myFoo = Foo()
>>> myBar = Bar()
>>> myBar.foo = myFoo
>>> assert myBar in myFoo.bars
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError
>>> myFoo.bars
[]
>>>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to