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 am using a custom identifier that is inserted by user.
Even when i'm inserting a new Model, when I do save() it always do the update function because it assumes that my identifier is not null, witch is kinda right. I studied the flow and overwritten the 'identifier' function, that instead of getting the the active attribute gets the saved one. It solved my problem and i thought it was more accurate if the main function did the same. Hope it helps anyone else.
I am using a custom identifier that is inserted by user.
Even when i'm inserting a new Model, when I do save() it always do the update function because it assumes that my identifier is not null, witch is kinda right. I studied the flow and overwritten the 'identifier' function, that instead of getting the the active attribute gets the saved one. It solved my problem and i thought it was more accurate if the main function did the same. Hope it helps anyone else.
identifier() { return this.saved(this.getOption('identifier')) }
The text was updated successfully, but these errors were encountered: