MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / set_parent

Method set_parent

lib/sqlalchemy/orm/interfaces.py:628–635  ·  view source on GitHub ↗

Set the parent mapper that references this MapperProperty. This method is overridden by some subclasses to perform extra setup when the mapper is first known.

(self, parent: Mapper[Any], init: bool)

Source from the content-addressed store, hash-verified

626 return iter(())
627
628 def set_parent(self, parent: Mapper[Any], init: bool) -> None:
629 """Set the parent mapper that references this MapperProperty.
630
631 This method is overridden by some subclasses to perform extra
632 setup when the mapper is first known.
633
634 """
635 self.parent = parent
636
637 def instrument_class(self, mapper: Mapper[Any]) -> None:
638 """Hook called by the Mapper to the property to initiate

Callers 1

_configure_propertyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected