summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/relationships.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-07-19 12:36:21 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2016-07-19 12:36:21 -0400
commit8952a30f0a27d6b57e7b054b8b464382b67e3828 (patch)
treec7444e8e38531d2ccf1da7fc12c530e76156bb0d /lib/sqlalchemy/orm/relationships.py
parentee5e815e2c936d28e0fce7ef64d4d74ad27f19e3 (diff)
downloadsqlalchemy-8952a30f0a27d6b57e7b054b8b464382b67e3828.tar.gz
Remove same-named relationship warning
Removed a warning that dates back to 0.4 which emits when a same-named relationship is placed on two mappers that inherits via joined or single table inheritance. The warning does not apply to the current unit of work implementation. Change-Id: If528ec3a2f4dc60712d9044fd1ec6c4dfbf0eadb Fixes: #3749
Diffstat (limited to 'lib/sqlalchemy/orm/relationships.py')
-rw-r--r--lib/sqlalchemy/orm/relationships.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py
index 4d5e5d29d..e8a2992b0 100644
--- a/lib/sqlalchemy/orm/relationships.py
+++ b/lib/sqlalchemy/orm/relationships.py
@@ -1742,17 +1742,6 @@ class RelationshipProperty(StrategizedProperty):
(self.key, self.parent.class_.__name__,
self.parent.class_.__name__))
- # check for conflicting relationship() on superclass
- if not self.parent.concrete:
- for inheriting in self.parent.iterate_to_root():
- if inheriting is not self.parent \
- and inheriting.has_property(self.key):
- util.warn("Warning: relationship '%s' on mapper "
- "'%s' supersedes the same relationship "
- "on inherited mapper '%s'; this can "
- "cause dependency issues during flush"
- % (self.key, self.parent, inheriting))
-
def _get_cascade(self):
"""Return the current cascade setting for this
:class:`.RelationshipProperty`.