[sqlalchemy] Re: problem with mapper relationship

2006-12-08 Thread Michael Bayer
the test object you are loading in the update function is local to the update function itself. when the function completes, test falls out of scope and is removed from the session (since it is weakly referenced in the session). a change needs to be made to session whereby dirty objects dont get

[sqlalchemy] Re: problem with mapper relationship

2006-12-08 Thread Manlio Perillo
Michael Bayer ha scritto: the test object you are loading in the update function is local to the update function itself. when the function completes, test falls out of scope and is removed from the session (since it is weakly referenced in the session). a change needs to be made to

[sqlalchemy] Re: problem with mapper relationship

2006-12-07 Thread Michael Bayer
cant reproduce. heres a test case of the above which passes: from sqlalchemy import * meta = BoundMetaData('sqlite://', echo=True) tests = Table('tests',meta, Column('id', Integer, primary_key=True), Column('foo', String(30)) ) tests_state = Table('tests_state',meta, Column('id',

[sqlalchemy] Re: Problem with mapper relationship when lazy=False

2006-10-23 Thread Steve Zatz
youre really looking to have an association object pattern here. I thought you might recommend that. My problem last time I tried an association object was that in the following situation: item table keyword table itemkeyword table (and association object) I couldn't get the keywords to eager

[sqlalchemy] Re: Problem with mapper relationship when lazy=False

2006-10-23 Thread Steve Zatz
the eager load should be able to go through the association object down to the endpoint Keyword objects Thanks -- that does work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this