summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/interfaces.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
-rw-r--r--lib/sqlalchemy/orm/interfaces.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py
index b210e577f..fb77f56c2 100644
--- a/lib/sqlalchemy/orm/interfaces.py
+++ b/lib/sqlalchemy/orm/interfaces.py
@@ -392,13 +392,15 @@ class MapperProperty(object):
def set_parent(self, parent):
self.parent = parent
- def init(self, key, parent):
+ def instrument_class(self, mapper):
+ raise NotImplementedError()
+
+ def init(self):
"""Called after all mappers are compiled to assemble
relationships between mappers, establish instrumented class
attributes.
"""
- self.key = key
self._compiled = True
self.do_init()