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
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
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':
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
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)