DS.Model#hasMany()

hasMany (name) HasManyReference Defined in addon/-private/system/model/model.js:883 Available since 2.5.0 Get the reference for the specified hasMany relationship. Example // models/blog.js export default DS.Model.extend({ comments: DS.hasMany({ async: true }) }); var blog = store.push({ type: 'blog', id: 1, relationships: { comments: { data: [ { type: 'comment', id: 1 }, { type: 'comment', id: 2 } ] } } }); var commentsRef = blog.hasMany('comm

Application#visit()

visit (url, options) Promisepublic Defined in packages/ember-application/lib/system/application.js:777 Boot a new instance of Ember.ApplicationInstance for the current application and navigate it to the given url. Returns a Promise that resolves with the instance when the initial routing and rendering is complete, or rejects with any error that occured during the boot process. When autoboot is disabled, calling visit would first cause the application to boot, which runs the application init

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.BuildURLMixin#_buildURL()

_buildURL (modelName, id) Stringprivate Defined in addon/-private/adapters/build-url-mixin.js:81 Parameters: modelName String id String Returns: String url

ArrayProxy

Ember.ArrayProxy Class PUBLIC Extends: Ember.Object Uses: Ember.MutableArray Defined in: packages/ember-runtime/lib/system/array_proxy.js:37 Module: ember-runtime An ArrayProxy wraps any other object that implements Ember.Array and/or Ember.MutableArray, forwarding all requests. This makes it very useful for a number of binding use cases or other cases where being able to swap out the underlying array is useful. A simple example of usage: let pets = ['dog', 'cat', 'fish']; let ap = Ember.A

ArrayProxy#arrangedContent

arrangedContentprivate Defined in packages/ember-runtime/lib/system/array_proxy.js:88 The array that the proxy pretends to be. In the default ArrayProxy implementation, this and content are the same. Subclasses of ArrayProxy can override this property to provide things like sorting and filtering.

DS.RootState

DS.RootState Class Defined in: addon/-private/system/model/states.js:12 Module: ember-data State Each record has a currentState property that explicitly tracks what state a record is in at any given time. For instance, if a record is newly created and has not yet been sent to the adapter to be saved, it would be in the root.loaded.created.uncommitted state. If a record has had local modifications made to it that are in the process of being saved, the record would be in the root.loaded.upda

DS.Snapshot#type

type{DS.Model} Defined in addon/-private/system/snapshot.js:78 The type of the underlying record for this snapshot, as a DS.Model.

DataAdapter#acceptsModelName

acceptsModelNamepublic Defined in packages/ember-extension-support/lib/data_adapter.js:91 Ember Data > v1.0.0-beta.18 requires string model names to be passed around instead of the actual factories. This is a stamp for the Ember Inspector to differentiate between the versions to be able to support older versions too.

Application#boot()

bootPromiseprivate Defined in packages/ember-application/lib/system/application.js:541 Initialize the application and return a promise that resolves with the Ember.Application object when the boot process is complete. Run any application initializers and run the application load hook. These hooks may choose to defer readiness. For example, an authentication hook might want to defer readiness until the auth token has been retrieved. By default, this method is called automatically on "DOM rea