On Wed, Oct 29, 2008 at 1:22 AM, Stephen Soltesz <[EMAIL PROTECTED]> wrote: > Hello, I'm experiencing an issue nearly identical in structure as that in a > recent post: > > http://groups.google.com/group/sqlelixir/browse_thread/thread/ed8d0650b79ce942 > > The raw sqlalchemy version works without exception. But, my preference is > to simply use Elixir to do this, yet I find that I'm pulling my hair out > trying to figure it out. > I am using Elixir - 0.6.1 and SA 0.5.0rc1. > > I've attached a simple test case that creates the tables in a postgres db. > > Can anyone provide a hint for what the correct translation is into Elixir > from the code in the attached example? > > For the Elixir version, is there a way to reference the ClauseElements in > the primaryjoin= & secondaryjoin= values in the same way as I do in the SA > version? > > As is, the Elixir version raises: > sqlalchemy.exc.ArgumentError: Could not determine join condition between > parent/child tables on relation UsrGrp.users. Specify a 'primaryjoin' > expression. If this is a many-to-many relation, 'secondaryjoin' is needed > as well. > > Thank you very much for any hints you can provide. > Stephen.
Well, the short answer is: this is not currently possible, due to several reasons. A longer answer will follow after I have researched if I can fix this easily or not. -- 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 -~----------~----~----~----~------~----~------~--~---
