Hi Oleg

>
>    RelatedJoin cannot see "fooDooh" in VoidFoo definition. You have to
help
> it to name the column using "joinColumn" keyword:
>
> class Void(sqlobject.SQLObject):
>     foos = sqlobject.SQLRelatedJoin('Foo', intermediateTable =
'void_foo',
>         joinColumn = 'void_dooh_id', otherColumn = 'foo_dooh_id',
> createRelatedTable = False)
>
> class Foo(sqlobject.SQLObject):
>     voids = sqlobject.SQLRelatedJoin('Void', intermediateTable =
'void_foo',
>         joinColumn = 'foo_dooh_id', otherColumn = 'void_dooh_id',
> createRelatedTable = False)
>

Ah, now I got it.

Looks like I didn't read the documentation too thoroughly, it's all there
in that example...

Thanks!
Bernhard
___________________________________________________________________

Disclaimer:


Diese Mitteilung ist nur fuer die Empfaengerin / den Empfaenger bestimmt.

Fuer den Fall, dass sie von nichtberechtigten Personen empfangen wird,
bitten wir diese hoeflich, die Mitteilung an die ZKB zurueckzusenden und
anschliessend die Mitteilung mit allen Anhaengen sowie allfaellige Kopien
zu vernichten bzw. zu loeschen. Der Gebrauch der Information ist verboten.


This message is intended only for the named recipient and may contain
confidential or privileged information.

If you have received it in error, please advise the sender by return e-mail
and delete this message and any attachments. Any unauthorised use or
dissemination of this information is strictly prohibited.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to