]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- moved property._is_self_referential() to be more generalized; returns True for...
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Mar 2008 03:16:46 +0000 (03:16 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Mar 2008 03:16:46 +0000 (03:16 +0000)
commitf621df6ce6f3d60ec5badf789f98f62d1d0c206c
tree4014a5802a0e1212eb73684917f3780482aa187d
parentafc0cdfe7449c7821e22fe8ff9c27cf9eca1e7e0
- moved property._is_self_referential() to be more generalized; returns True for any mapper.isa() relationship between parent and child, and indicates that aliasing should be used for any join/correlation across the relation.  allows joins/any()/has() to work with inherited mappers referencing the parent etc.
- the original _is_self_referential() is now _refers_to_parent_table() and is only used during "direction" calculation to indicate the relation is from a single table to itself
CHANGES
lib/sqlalchemy/orm/properties.py
test/orm/generative.py
test/orm/inheritance/query.py