Class DS.AdapterPopulatedRecordArray
Extends:
DS.RecordArray
Module:
ember-data
Represents an ordered list of records whose order and membership is
determined by the adapter. For example, a query sent to the adapter
may trigger a search on the server, whose results would be loaded
into an instance of the AdapterPopulatedRecordArray
.
save DS.PromiseArray
Module:
ember-data
Inherited from DS.RecordArray packages/ember-data/lib/system/record-arrays/record-array.js:151
- returns
- DS.PromiseArray
- promise
Saves all of the records in the RecordArray
.
Example
1 2 3 4 5 |
var messages = store.peekAll('message'); messages.forEach(function(message) { message.set('hasBeenSeen', true); }); messages.save(); |
update
Module:
ember-data
Inherited from DS.RecordArray packages/ember-data/lib/system/record-arrays/record-array.js:99
Used to get the latest version of all of the records in this array from the adapter.
Example
1 2 3 4 |
var people = store.peekAll('person'); people.get('isUpdating'); // false people.update(); people.get('isUpdating'); // true |