when removing an object related to a parent, try to remove the relationship