DS.Model

DS.Model Class Extends: Ember.Object Uses: Ember.Evented Defined in: addon/-private/system/relationships/ext.js:96 Module: ember-data The model class that all Ember Data records descend from. This is the public API of Ember Data models. If you are using Ember Data in your application, this is the class you should use. If you are working on Ember Data internals, you most likely want to be dealing with InternalModel

DS.ManyArray#reload()

reloadpublic Defined in addon/-private/system/many-array.js:236

DS.ManyArray#save()

saveDS.PromiseArray Defined in addon/-private/system/many-array.js:244 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

DS.ManyArray#isLoaded

isLoadedBoolean Defined in addon/-private/system/many-array.js:109 The loading state of this array

DS.ManyArray#loadingRecordsCount()

loadingRecordsCount (count) private Defined in addon/-private/system/many-array.js:215 Parameters: count Number

DS.ManyArray#isPolymorphic

isPolymorphicBooleanprivate Defined in addon/-private/system/many-array.js:101 true if the relationship is polymorphic, false otherwise.

DS.ManyArray#meta

metaObjectpublic Defined in addon/-private/system/many-array.js:124 Metadata associated with the request for async hasMany relationships. Example Given that the server returns the following JSON payload when fetching a hasMany relationship: { "comments": [{ "id": 1, "comment": "This is the first comment", }, { // ... }], "meta": { "page": 1, "total": 5 } } You can then access the metadata via the meta property: post.get('comments').then(function(comments) {

DS.ManyArray#promise

promiseEmber.RSVP.Promiseprivate Defined in addon/-private/system/many-array.js:206 Used for async hasMany arrays to keep track of when they will resolve.

DS.ManyArray#loadedRecord()

loadedRecordprivate Defined in addon/-private/system/many-array.js:224

DS.JSONSerializer#_shouldSerializeHasMany()

_shouldSerializeHasMany (snapshot, key, relationshipType) Booleanprivate Defined in addon/serializers/json.js:878 Check if the given hasMany relationship should be serialized Parameters: snapshot DS.Snapshot key String relationshipType String Returns: Boolean true if the hasMany relationship should be serialized