You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll look into it, but I think what makes this not a straight forward fix is that I use fake IDs while working with objects before they get persisted to that database.
Work around would be to check the objects you pass into save() beforehand.
When you save an object with a many-to-one relation and the ID for the many-to-one object is invalid, an empty new object is created.
For example:
Object1.save({ object2 = object2id });
if object2id is not a valid object2 ID, a new object2 object will be created in the database.
The text was updated successfully, but these errors were encountered: