BREAKING CHANGE: Changes the checkEqual method to compare 2 model instances so that it now only checks if both have an id and returns true if they are the same. Previously it would additionally check allProperties() for equality and then claim that the instances are the same, even if the instances did not have ids set and could thus be different instances later on simply by saving them individually or other ways.
This shouldn't affect many use-cases, but is still a breaking change. Since the bug is also not critical - as far as I can tell - the fix will not land in the normal v1 version, but instead in a special v1-breaking branch/tag.
Also fixes other bugs in the equality checking and the unlink cleanup check.
BREAKING CHANGE: Changes the checkEqual method to compare 2 model instances so that it now only checks if both have an id and returns true if they are the same. Previously it would additionally check allProperties() for equality and then claim that the instances are the same, even if the instances did not have ids set and could thus be different instances later on simply by saving them individually or other ways.
This shouldn't affect many use-cases, but is still a breaking change. Since the bug is also not critical - as far as I can tell - the fix will not land in the normal v1 version, but instead in a special v1-breaking branch/tag.
Also fixes other bugs in the equality checking and the unlink cleanup check.
Big thanks to lp-belliot!
Continuation of #123