Skip to content

objects with relationships can be saved twice

Compare
Choose a tag to compare
@refractalize refractalize released this 10 Mar 22:11
· 151 commits to master since this release

There was an issue where if you saved an object with function relationships, i.e. functions that returned more objects, those objects would be saved, fine. Problem occurred the next time you saved the same object, it would call the function again and return new objects to save. The fix is to set the return values of those functions as fields on the object, overwriting the function, and thus allowing the object to be saved again without problem.