#1456: support for secondary/intermediary tables that are not used only for their
association
-----------------------------------------+----------------------------------
Reporter: guest | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone:
Component: orm | Severity: no triage selected yet
Resolution: | Keywords:
Status_field: needs questions answered |
-----------------------------------------+----------------------------------
Comment (by guest):
trying to create a relation to map from table1 to table3 over a hidden
intermediary table2, so table3 can be addressed as table1.table3.
association object pattern creates two relations, so table3 would be
addressed table1.table2.table3, which as i said originally, you can test
whether or not the association exists yet by checking if table1.table2 is
None. but with the direct relation (that hides the intermediary), you
cannot test if the association exists yet as table1.table3 == None in two
scenarions: if the association has not been made, or if the association
has only been made half way.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1456#comment:2>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|