On 09/04/2013 14:29, Werner wrote:
...
Wineracku.combrack = sao.relationship('Wineracku',
remote_side=[Wineracku.id],
cascade="all, delete,
delete-orphan",
single_parent=True)
Wineracku.combrack = sao.relationship('Wineracku',
backref=sao.backref('winerackucomb',
cascade="all, delete, delete-orphan"),
remote_side=[Wineracku.id])
I think this is it now, no more errors the "Wineracku" entries get
deleted when I delete a unit if they use "combrack" relationship or not.
Wouldn't mind a confirmation if I do things correctly now or if there is
a nicer, maybe even out of the box, solution to this.
Werner
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.