table A,B B.a_id=A.id my code like this:
new_a=A() session.begin() session.add(new_a) new_b=B() new_b.a_id=new_a.id session.add(new_b) try: session.commit() except: session.rollback() raise why new_b.a_id is None? how to do? -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
