> you need to flip around where you put the "delete-orphan" rule - see my
> previous email on the subject.
>
In other words:
order_mapper = mapper(Order, order_table, properties=dict
(orderdetails=relation(OrderDetail,
cascade='all,delete-orphan', single_parent=True,
backref='parentorder')))
orderdetail_mapper = mapper(OrderDetail, order_detail_table)
=====
Thank you very much.
That also solved the earlier problem with merge. I don't need to
supply both portions of the composite key... it works that out.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.