Hi all!

In a 1-N relation between a country and its regions, I'm using an
attribute extension to update the current count of regions into
countries. It works very well when I append or remove regions from
country.
But if I delete one of the region directly (session.delete(region)),
the country doesn't know it has lost one...

I tried to use a MapperExtension.before_delete to manually remove the
said region from the country, but it is not marked as "dirty" and then
not updated...

Any way to do it properly?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to