Re: [Sqlalchemy-tickets] [sqlalchemy] #1454: Simple relation enhancement, bi-directional one-to-one
Brought to you by:
zzzeek
From: sqlalchemy <mi...@zz...> - 2009-06-26 15:14:57
|
#1454: Simple relation enhancement, bi-directional one-to-one relationships --------------------------------+------------------------------------------- Reporter: guest | Owner: zzzeek Type: enhancement | Status: new Priority: medium | Milestone: Component: orm | Severity: no triage selected yet Resolution: | Keywords: Status_field: awaiting triage | --------------------------------+------------------------------------------- Comment (by zzzeek): well no, because people don't read the documentation. its essentially a surprise behavior. The logic to determine many-to-one/one-to-many is quite involved, but if a foreign key is not detected, it fails loudly. this would be that same logic duplicated (since we need to ensure for multiple-column constraints, ensure that the join condition is simple, etc.) and it wouldn't work in many situations, failing silently. Its too much complexity and inconsistency for not enough benefit. -- Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1454#comment:3> sqlalchemy <http://www.sqlalchemy.org/> The Database Toolkit for Python |