SQLAlchemy many-to-many orphan deletion

后端 未结 4 2102
梦如初夏
梦如初夏 2021-02-15 13:06

I\'m trying to use SQLAlchemy to implement a basic users-groups model where users can have multiple groups and groups can have multiple users.

When a group becomes empty

4条回答
  •  无人共我
    2021-02-15 13:27

    Could you post a sample of your table and mapper set up? It might be easier to spot what is going on.

    Without seeing the code it is hard to tell, but perhaps there is something wrong with the direction of the relationship?

提交回复
热议问题