if you're passing objects between threads with corresponding
contextual sessions, you need to be expunging those objects from the
session in which they're present before using them in another
session. Use Session.expunge() for this.
I'm not sure the cascade "property" is the answer to Matt's problem
but in any case, you can use the "cascade" argument on Elixir
relationships exactly as you do with SQLAlchemy's relation(). In fact
any argument not specifically used by Elixir's relationships is
forwarded to the relation() construct.
--
Gaëtan de Menten
http://openhex.org