@_memoized_configured_property
def _primary_key_props(self):
+ # TODO: this should really be called "identity key props",
+ # as it does not necessarily include primary key columns within
+ # individual tables
return [self._columntoproperty[col] for col in self.primary_key]
+ @_memoized_configured_property
+ def _primary_key_propkeys(self):
+ return set([prop.key for prop in self._primary_key_props])
+
def _get_state_attr_by_column(
self, state, dict_, column,
passive=attributes.PASSIVE_RETURN_NEVER_SET):