From 63e2a0f8eba8c2a3b522abb86d17edb6c7bc94ee Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 6 Aug 2012 11:36:57 -0400 Subject: - [bug] Improvements to joined/subquery eager loading dealing with chains of subclass entities sharing a common base, with no specific "join depth" provided. Will chain out to each subclass mapper individually before detecting a "cycle", rather than considering the base class to be the source of the "cycle". [ticket:2481] --- lib/sqlalchemy/orm/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy') diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 27d9b1b69..5f6c8d4a0 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -288,7 +288,7 @@ class PathRegistry(object): return len(self.path) def contains_mapper(self, mapper): - return mapper.base_mapper in self.reduced_path + return mapper in self.path def contains(self, reg, key): return (key, self.reduced_path) in reg._attributes -- cgit v1.2.1