DS.Model.eachRelatedType()

eachRelatedType (callback, binding) static Defined in addon/-private/system/relationships/ext.js:559 Given a callback, iterates over each of the types related to a model, invoking the callback with the related type's class. Each type will be returned just once, regardless of how many different relationships it has with a model. Parameters: callback Function the callback to invoke binding Any the value to which the callback's `this` should be bound

DS.Model.fields

fieldsEmber.Mapstatic Defined in addon/-private/system/relationships/ext.js:488 A map whose keys are the fields of the model and whose values are strings describing the kind of the field. A model's fields are the union of all of its attributes and relationships. For example: app/models/blog.js import DS from 'ember-data'; export default DS.Model.extend({ users: DS.hasMany('user'), owner: DS.belongsTo('user'), posts: DS.hasMany('post'), title: DS.attr('string') }); import Ember f

DS.Model.eachAttribute()

eachAttribute (callback, binding) static Defined in addon/-private/system/model/attr.js:121 Iterates through the attributes of the model, calling the passed function on each attribute. The callback method you provide should have the following signature (all parameters are optional): function(name, meta); name the name of the current property in the iteration meta the meta object for the attribute property in the iteration Note that in addition to a callback, you can also pass an optional

DS.Model.attributes

attributes{Ember.Map}static Defined in addon/-private/system/model/attr.js:18 A map whose keys are the attributes of the model (properties described by DS.attr) and whose values are the meta object for the property. Example app/models/person.js import DS from 'ember-data'; export default DS.Model.extend({ firstName: attr('string'), lastName: attr('string'), birthday: attr('date') }); import Ember from 'ember'; import Person from 'app/models/person'; var attributes = Ember.get(Perso

DS.Model#_debugInfo()

_debugInfoprivate Defined in addon/-private/system/debug/debug-info.js:5 Provides info about the model for debugging purposes by grouping the properties into more semantic groups. Meant to be used by debugging tools such as the Chrome Ember Extension. Groups all attributes in "Attributes" group. Groups all belongsTo relationships in "Belongs To" group. Groups all hasMany relationships in "Has Many" group. Groups all flags in "Flags" group. Flags relationship CPs as expensive properties.

DS.Model.create()

createprivatestatic Defined in addon/-private/system/model/model.js:970 Override the class' create() method to raise an error. This prevents end users from inadvertently calling create() instead of createRecord(). The store is still able to create instances by calling the _create() method. To create an instance of a DS.Model use store.createRecord.

DS.Model#_notifyProperties()

_notifyPropertiesprivate Defined in addon/-private/system/model/model.js:591

DS.Model#unloadRecord()

unloadRecordprivate Defined in addon/-private/system/model/model.js:582

DS.Model#transitionTo()

transitionTo (name) private Defined in addon/-private/system/model/model.js:490 Parameters: name String

DS.Model#trigger()

trigger (name) private Defined in addon/-private/system/model/model.js:783 Override the default event firing from Ember.Evented to also call methods with the given name. Parameters: name String