Hello,

Any idea why the following doesn't work ? :

Topic2=  orm.aliased(Topic)
q=  Occurrence.query.\
    join(Occurrence.datasheet).\
    options(orm.contains_eager(Occurrence.datasheet)).\
    join(Topic2).\
    options(orm.contains_eager(DataSheet.topic,alias=Topic2)).\
    outerjoin(Occurrence.species).\
    options(orm.contains_eager(Occurrence.species))

I get a:

ArgumentError: Can't find property 'topic' on any entity specified in this 
Query.  Note the full path from root (Mapper|Occurrence|occurrences) to target 
entity must be specified.


and I don't understand why ..

Thanks,
Julien

--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

<<attachment: jcigar.vcf>>

Reply via email to