#NEWLINE# def _fixture_to_subclass_to_base( self ) : #NEWLINE# #INDENT# Owner = self . classes . Owner #NEWLINE# Parent = self . classes . Parent #NEWLINE# Sub1 = Owner . classes . Sub1 #NEWLINE# Link = self . classes . Link #NEWLINE# Link . child = relationship ( Sub1 , primaryjoin = ( Link . child_id == Sub1 . id ) ) #NEWLINE# Parent . owner_id = Column ( ForeignKey ( 'owner.id' ) ) #NEWLINE# Parent . owner = relationship ( Owner ) #NEWLINE# return Parent