Re: [Sqlalchemy-tickets] [sqlalchemy] #2900: relationship aliased on subclass causes infinite recur
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2014-01-01 17:04:05
|
#2900: relationship aliased on subclass causes infinite recursion
---------------------------+-------------------------------
Reporter: scraper | Owner: zzzeek
Type: defect | Status: new
Priority: highest | Milestone: 0.9.xx
Component: orm | Severity: major - 1-3 hours
Resolution: | Keywords:
Progress State: in queue |
---------------------------+-------------------------------
Changes (by zzzeek):
* priority: medium => highest
* status_field: awaiting triage => in queue
* severity: no triage selected yet => major - 1-3 hours
* milestone: => 0.9.xx
Comment:
mmm OK, well use a synonym for that now, the thing you're doing there, if
it works in 0.8, works entirely by accident:
{{{
#!python
class FooChild(Child):
parent = synonym("foo")
}}}
the way that is now, the relationship() is probably being set up
incorrectly and when I look into it, i might prefer that pattern just
raise an exception, or make an implicit synonym, not really sure.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2900#comment:1>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|