onclause = and_(
AttendeeAnswer.field_pk==Field.pk, AttendeeAnswer.attendee_pk == Attendee.pk
)
query = self.session.query(Attendee).join(
Field, Field.conference_pk == Attendee.conference_pk
).outerjoin(
(AttendeeAnswer, onclause)
).add_entity(
AttendeeAnswer
).filter(
Attendee.conference_pk == conference_pk
)
results = query.all()
But this returns separate ORM objects, but in this specific case I would just like the results in a list containing the data results, rather than individual ORM objects. Is there a way to do this or should I just pass my select statement to execute?