Class RecordArray
Extends: | ArrayProxy |
---|---|
Uses: | Ember.Evented |
Defined in: | ../store/addon/-private/system/record-arrays/record-array.js:21 |
Module: | @ember-data/store |
_dissociateFromOwnRecords
Module: | @ember-data/store |
---|
Defined in ../store/addon/-private/system/record-arrays/record-array.js:233
_pushIdentifiers (identifiers)
Module: | @ember-data/store |
---|
Defined in ../store/addon/-private/system/record-arrays/record-array.js:247
- identifiers
- StableRecordIdentifier[]
Adds identifiers to the RecordArray
without duplicates
_removeIdentifiers (identifiers)
Module: | @ember-data/store |
---|
Defined in ../store/addon/-private/system/record-arrays/record-array.js:258
- identifiers
- StableRecordIdentifier[]
Removes identifiers from the RecordArray
.
_takeSnapshot
Module: | @ember-data/store |
---|
Defined in ../store/addon/-private/system/record-arrays/record-array.js:269
save PromiseArray
Module: | @ember-data/store |
---|
Defined in ../store/addon/-private/system/record-arrays/record-array.js:174
- returns
- PromiseArray
- promise
Saves all of the records in the RecordArray
.
Example
let messages = store.peekAll('message'); messages.forEach(function(message) { message.set('hasBeenSeen', true); }); messages.save();
update
Module: | @ember-data/store |
---|
Defined in ../store/addon/-private/system/record-arrays/record-array.js:127
Used to get the latest version of all of the records in this array from the adapter.
Example
let people = store.peekAll('person'); people.get('isUpdating'); // false people.update().then(function() { people.get('isUpdating'); // false }); people.get('isUpdating'); // true
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember-data/3.25/classes/RecordArray/methods