MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / entity

Method entity

lib/sqlalchemy/orm/relationships.py:1704–1711  ·  view source on GitHub ↗

Return the target mapped entity, which is an inspect() of the class or aliased class that is referenced by this :class:`.RelationshipProperty`.

(self)

Source from the content-addressed store, hash-verified

1702
1703 @util.memoized_property
1704 def entity(self) -> _InternalEntityType[_T]:
1705 """Return the target mapped entity, which is an inspect() of the
1706 class or aliased class that is referenced by this
1707 :class:`.RelationshipProperty`.
1708
1709 """
1710 self.parent._check_configure()
1711 return self.entity
1712
1713 @util.memoized_property
1714 def mapper(self) -> Mapper[_T]:

Callers

nothing calls this directly

Calls 1

_check_configureMethod · 0.80

Tested by

no test coverage detected