Closed elrayle closed 9 years ago
Fixed by pull request https://github.com/projecthydra-labs/hydra-pcdm/pull/120
Based on feedback, there is a preference for checking the ids if they exist and only doing object equality when either the parent or child has a nil id.
@elrayle Ah, sorry, I may have been hasty then. I thought since the edge cases were handled via object equivalence that we didn't want to handle it again.
ancestor? test checks ids aren't equal. So when collections/objects aren't saved, this fails because all ids are nil and therefore are equal.
Recommendation: do object equality instead of id equality