You're welcome, and I hope that works for you. I went through the
same process a few years ago when picking up SqlAlchemy... the backref
facility is so cool that it's easy to forget that it's optional and
that most relationship backrefs /could/ be handled as just another
relationship on the
Yeah... I'm pretty newbie myself with sqlalchemy, so when I discovered
that I could specify primary joins, secondary... and all that juicy
stuff in the backref I got so into writing it from A -- to -- B
that I forgot that it can be done B --from-- A
:) Thanks again!
2010/11/12 Eric Ongerth
Hi Hector,
If I'm not mistaken, everywhere you wrote
(MyObject.id==MyObject.containerId),
you meant to write: (Container.id==MyObject.containerId).
Instead of the backref technique, why not just create the MyObject--
Container relationship a single time in your MyObject class. That
should be