Charles Duffy wrote:
> Works great for that example. I'm not sure, though, how to specify
> metadata other than activemapper.metadata (which I'm having some
> issues
> with due to its thread-local characteristics -- discussed in another
> post) when trying to do many-to-many joins. See this example:
Your example is using '__meta__' instead of '__metadata__' in both of
the classes. Change them both to using '__metadata__' and it should
work correctly.
> class Foo(ActiveMapper):
> class mapping:
> __table__ = 'foo_tbl'
> __meta__ = meta
Change the above line to:
__metadata__ = meta
> class Bar(ActiveMapper):
> class mapping:
> __table__ = 'bar_tbl'
> __meta__ = meta
Same here!
> It would appear that there's a bit more to specifying the metadata
> correctly than just using the same metadata for the ActiveMapper
> classes
> and the join tables. Would you mind providing some enlightenment?
Nope, you just need to specify them correctly ;)
--
Jonathan LaCour
http://cleverdevil.org
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users