alleyinteractive/wordpress-fieldmanager — pull request #61 by nschoenholtz (2013-11-12 20:51:38+00:00)
Title: When presaving the source posts, also remove all other entries of the same reciprocal to avoid duplicates

Without this change, a post that's added to a new parent will have reciprocal meta keys for both parents.

This definitely fixes the issue, but I'm concerned about whether this would introduce new issues. Does it need to go and remove the child post as a value from other parents? Are there uses where the child should be present in multiple parents and able to reference them all as an array? If that's the case then maybe the more appropriate fix would actually be to fetch all and use the most recent value for this specific issue in the theme code, with no changes in FM? Or, is it possible to hook into the deletion of the parent post and then delete all the child reciprocals?