saveDS.PromiseArray
Saves all of the records in the ManyArray
.
Example
store.findRecord('inbox', 1).then(function(inbox) { inbox.get('messages').then(function(messages) { messages.forEach(function(message) { message.set('isRead', true); }); messages.save() }); });
Returns:
-
DS.PromiseArray
- promise
Please login to continue.