[sqlalchemy] Re: Accessing attributes hidden by a join

2009-08-04 Thread Mike Conley
Did you consider using the mapper mapper(Entity, entities_table, properties={ 'interval' : relation(Interval) }) instead of the join()? Optional arguments on the relation can control things like lazy vs eager loading, and scalar vs list for 1-1 or 1-n relationships. If you need to use

[sqlalchemy] Re: Accessing attributes hidden by a join

2009-08-04 Thread Michael Bayer
Nathan Harmston wrote: Hi everyone, I am trying to get access to attributes which are hidden by a join: I have two tables intervals_table = Table(intervals, metadata, Column(interval_id, Integer, primary_key=True), Column(sentence_id,