Deleting a document whose _id is a reference in another collection causes documents in the other collection to be deleted

Morphia doesn’t support cascading deletes like that so I’m not sure why you’re seeing it in the first case. It would help to see your actual classes (names can be redacted if need be) and perhaps the code your using to delete the entities. There’s some nuance that I’m missing so far.

1 Like