Class DS.AdapterPopulatedRecordArray
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.
Methods
save : DS.PromiseArray
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
var messages = store.peekAll('message');
messages.forEach(function(message) {
message.set('hasBeenSeen', true);
});
messages.save();update
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
var people = store.peekAll('person');
people.get('isUpdating'); // false
people.update();
people.get('isUpdating'); // trueProperties
isLoaded
Inherited from DS.RecordArray packages/ember-data/lib/system/record-arrays/record-array.js:45
The flag to signal a RecordArray is finished loading data.
Example
var people = store.peekAll('person');
people.get('isLoaded'); // trueisUpdating
Inherited from DS.RecordArray packages/ember-data/lib/system/record-arrays/record-array.js:59
The flag to signal a RecordArray is currently loading data.
Example
var people = store.peekAll('person');
people.get('isUpdating'); // false
people.update();
people.get('isUpdating'); // truetype
Inherited from DS.RecordArray packages/ember-data/lib/system/record-arrays/record-array.js:25
The model type contained by this record array.