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 was trying to rollback a relationship, and I found that canonicalRecord didn't update after save if it's value is set to null. I don't know whether it is issue, but it is weird for canonicalRecord still keep the invalid record after save.
I do it in dirty ways, by adding a hook to didUpdate event.
Everytime those model saved, it will check all belongsto relationship. If it is empty then cleanup canonical record.
I was trying to rollback a relationship, and I found that canonicalRecord didn't update after save if it's value is set to null. I don't know whether it is issue, but it is weird for canonicalRecord still keep the invalid record after save.
data/packages/ember-data/lib/system/relationships/state/belongs-to.js
I guess it should be modify as follow
The text was updated successfully, but these errors were encountered: