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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,3 +15,4 @@ If you rewrote beforeSave methods, be careful and pass the optional `opts` objec
15
15
If you wish to keep sending all your fields to the server each you save (which you shouldn't). Pass `{force: true}` as options in the `save` method.
16
16
- re-population after save.
17
17
Until 2.0.0 when you wanted to repopulate an object after saving it (ie making another query), you had to pass it as the first argument of the save method. Now, it has to be given as an options object containing `{populate: whateverYouNeedToPopulate}`
18
+
- Empty arrays: when building an active record, undefined arrays will not be instantiated to empty arrays (to prevent overriding unselected fields). Check for the actual presence of the array before trying to push.
0 commit comments