[sqlalchemy] join Query.from_statement

2018-06-10 Thread Dmytro Starosud
Hello guys! I am trying to join two models by relationship, but I want to emulate values of second model using from_statement. class X(Base): __tablename__ = 'x' id = Column(Integer, primary_key=True) class Y(Base): __tablename__ = 'y' id = Column(Integer, primary_key=True)

[sqlalchemy] Re: Generic Associations - table_per_association: parent attribute

2018-06-10 Thread Sven
Hello, has sometone an answer or an idea which I can study ? I also tried the table_per_related example but It will not works since my "Object" instances have to be able to be stored by hands and by ObjectContainers and to be able to go from Hands to ObjectContainers (and vice versa). Indeed,