ticket 427 is fixed in rev 2216. so using the trunk or 0.3.4 when i
get around to releasing, this is the program:
imageMapper = mapper(Image, ImageTable,
properties={'comments': relation(Comment,
secondary=ImageCommentTable, lazy=False, cascade="all, delete-orphan")}
)
session = create_session()
i = Image("new")
session.save(i)
session.flush()
c = Comment("new comment")
session.save(c)
i.comments.append(c)
session.flush()
i = session.query(Image).get(i.id)
c = session.query(Comment).get(c.id)
i.comments.remove(c)
session.flush()
session.clear()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---