Michael Bayer wrote: > > On Jul 18, 2006, at 11:18 PM, Daniel Miller wrote: > >> Take a look at this example in the Hibernate documentation: >> >> http://www.hibernate.org/hib_docs/v3/reference/en/html/example-parentchild.html#example-parentchild-bidir >> >> >> ... >> > > right, but that implies that p.children is not a lazily-instrumented > attribute, you can get the same thing in SA by saying "lazy=None".
Nope, I don't think so. I'm pretty sure p.children could be loaded with any strategy at all (eager, lazy, whatever) and the inverse=True thing wouldn't affect that at all. The only difference is that adding or removing items to/from p.children would have no affect on what children were actually related to p. > > im not sure whats accomplished by having the backref not "update both > sides"....why not just not specify the backref at all in that case ? > this would be possible though, the backref does consist of not just the > attribute bi-directional behavior, but also a hint used during a flush() > that its a bi-directional relationship. Well right, and that's what I ended up doing. But I sort of think the p.children collection will still try to update the relationship if it gets modified, which would cause problems in my case. That's why we might need to implement inverse=True. I'll play with it for a while and look into implementing it if there's a problem. > >> Wow, don't burn yourself out. I wasn't demanding that you implement >> this feature, I just wanted to discuss it on the list. I even started >> to work on a patch last night but it got too late and I had to go to >> bed. Seriously, make sure you don't burn yourself out. You've been an >> amazing source of help for everyone getting started with SA, and it >> would be a shame if you couldn't keep working on it. > > sorry...im always burning myself out ! dont take it personal. tell you > what, everyone on the SA list show up to new york city this weekend and > ill buy everyone a beer. seriously. well maybe not 190 beers but > something substantial...im glad to have everyone on board. even though > i periodically lose it here (96 degree weather doesnt help....) > Man that would be fun (except I'm not a beer drinker... :) But my wife and I are buying a house and we're packing/moving all this/next week so it's sort of a bad time for me to drop everything and come to NY. Maybe we can get together sometime though. ~ Daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users