[sqlalchemy] Re: SA cascade conflicts with MySQL ON DELETE

2009-10-21 Thread Max Ischenko
Conor, Thanks for your help! On Tue, Oct 20, 2009 at 16:27, Conor conor.edward.da...@gmail.com wrote: You can tell SQLAlchemy that the database will cascade deletes on its own (add passive_deletes=True to the relation arguments, see

[sqlalchemy] Re: SA cascade conflicts with MySQL ON DELETE

2009-10-20 Thread Conor
Max Ischenko wrote: I have three related tables in MySQL and a corresponding mappings in SQLAlchemy. It all works fine until I tried to delete objects. I tinkered with different options but couldn't get it to work. Here is the relevant mappings: mapper(PlanetEntry,