MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / hasparent

Method hasparent

lib/sqlalchemy/orm/dependency.py:61–67  ·  view source on GitHub ↗

return True if the given object instance has a parent, according to the ``InstrumentedAttribute`` handled by this ``DependencyProcessor``.

(self, state)

Source from the content-addressed store, hash-verified

59 return _direction_to_processor[prop.direction](prop)
60
61 def hasparent(self, state):
62 """return True if the given object instance has a parent,
63 according to the ``InstrumentedAttribute`` handled by this
64 ``DependencyProcessor``.
65
66 """
67 return self.parent.class_manager.get_impl(self.key).hasparent(state)
68
69 def per_property_preprocessors(self, uow):
70 """establish actions and dependencies related to a flush.

Callers 6

presort_deletesMethod · 0.45
presort_savesMethod · 0.45
process_deletesMethod · 0.45
process_savesMethod · 0.45
presort_savesMethod · 0.45
presort_savesMethod · 0.45

Calls 1

get_implMethod · 0.45

Tested by

no test coverage detected