I'm working on hooks that would synchronise related collections. For example if we have two collections: Animal and Owner; and we add Animal to the Owner, relationship field in animal collection will automatically add owner to it, and if we delete owner from the animal, owner's relationship field will update as well.
Right now my manyToManyRelationship hook works fairly well for updating collections but sometimes it deletes records that it shouldn't touch.