Re: [sqlalchemy] on delete cascade

2012-02-25 Thread jo
om Date: Fri, 24 Feb 2012 11:41:48 To: sa Reply-To: sqlalchemy@googlegroups.com Subject: [sqlalchemy] on delete cascade Hi all, I'm trying to delete cascade a linked row without success. Could anyone give me some help? This is my mapper: mapper(Azienda, tbl

Re: [sqlalchemy] on delete cascade

2012-02-24 Thread Tate Kim
From: "Tate Kim" Date: Fri, 24 Feb 2012 17:56:44 To: Reply-To: insight...@gmail.com Subject: Re: [sqlalchemy] on delete cascade Hi, jo. At first, try with cascade option 'all, delete' (note that dropped 'delete-orphan'). Second, I've ever been your situat

Re: [sqlalchemy] on delete cascade

2012-02-24 Thread Tate Kim
lalchemy@googlegroups.com Subject: [sqlalchemy] on delete cascade Hi all, I'm trying to delete cascade a linked row without success. Could anyone give me some help? This is my mapper: mapper(Azienda, tbl['azienda'], properties = { 'anagrafica':

[sqlalchemy] on delete cascade

2012-02-24 Thread jo
Hi all, I'm trying to delete cascade a linked row without success. Could anyone give me some help? This is my mapper: mapper(Azienda, tbl['azienda'], properties = { 'anagrafica': relation(Anagrafica, cascade='all, delete, delete-orphan'), }) the table Azienda has

[sqlalchemy] On delete cascade, set null

2009-02-01 Thread drakkan
Hi all, I have the following mapping: class SharesUsers(DeclarativeBase): __tablename__='m2m_shares_users' id=Column(Integer,autoincrement=True,primary_key=True) user_id=Column(Integer,ForeignKey ('samba_users.id',onupdate="CASCADE",ondelete="CASCADE"),nullable=False)