def _mapper_zero_or_none(self):
    if self._primary_entity:
        return self._primary_entity.mapper
    else:
        return None
def _mapper_zero_or_none(self):
    if self._primary_entity:
        return self._primary_entity.mapper
    else:
        return None