"""
- def __init__(self, class_, key, descriptor, property_,
+ def __init__(self, class_, key, descriptor,
comparator,
- adapter=None, doc=None):
+ adapter=None, doc=None,
+ original_property=None):
self.class_ = class_
self.key = key
self.descriptor = descriptor
- self.original_property = property_
+ self.original_property = original_property
self._comparator = comparator
self.adapter = adapter
self.__doc__ = doc
self.parent.class_,
self.key,
self.descriptor,
- self,
lambda: self._comparator_factory(mapper),
- doc=self.doc
+ doc=self.doc,
+ original_property=self
)
proxy_attr.impl = _ProxyImpl(self.key)
mapper.class_manager.instrument_attribute(self.key, proxy_attr)
# bigger operation so using a small variance
@profiling.function_call_count(variance=0.05,
- versions={'2.7':80, '2.6':80, '2.5':94, '3': 83})
+ versions={'2.7':85, '2.6':85, '2.5':94, '3': 83})
def go():
return sess2.merge(p1, load=False)
p2 = go()