Robin Munn <robin.munn <at> gmail.com> writes:

> You want to use a backref for that:
>
http://www.sqlalchemy.org/docs/datamapping.myt#datamapping_relations_backreferences
> 
> Note that the documentation example is the reverse of yours: you have
> multiple People sharing one Address, while the example in the docs is
> of one User with multiple Addresses. It should be pretty easy to
> figure out, nonetheless.
> 

Thanks, that's exactly what I wanted.  I would never have gotten that from
reading the doc.  I think the backref doc needs clarifying, or at least there
needs to be a 'if you want this kind of relationship, do the following' section.
 Perhaps it will all become clearer as I work with SQLAlchemy more.

Thanks again.




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to