Glauco ha scritto:
> in my many to many relation, i've an abiguous primary key so Sa tell me:
>
> sqlalchemy.exceptions.ArgumentError: Error determining primary and/or 
> secondary join for relationship 'xxx' between mappers 'Mapper|Yyy|yy' 
> and 'Mapper|Xxx|xxx'.  If the underlying error cannot be corrected, you 
> should specify the 'primaryjoin' (and 'secondaryjoin', if there is an 
> association table present) keyword arguments to the relation() function 
> (or for backrefs, by specifying the backref using the backref() function 
> with keyword arguments) to explicitly specify the join conditions.  
> Nested error is "Cant determine join between 'xxx' and 'yyy'; tables 
> have more than one foreign key constraint relationship between them.  
> Please specify the 'onclause' of this join explicitly."
>
>
> onclause is not within  relation optin, so what's the correct manner to 
> explicit it?
>
>
>
> Thank you
> Glauco
>
>   
Found.. primaryjoin

Sorry for noise.
Glauco


-- 
+------------------------------------------------------------+
                                  Glauco Uri - Programmatore
                                    glauco(at)allevatori.com 
                               
  Sfera Carta Software®      [EMAIL PROTECTED]
  Via Bazzanese,69  Casalecchio di Reno(BO) - Tel. 051591054 
+------------------------------------------------------------+



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to