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

DS.ManyArray#createRecord()

createRecord (hash) DS.Modelprivate Defined in addon/-private/system/many-array.js:273 Create a child record within the owner Parameters: hash Object Returns: DS.Model record

DS.ManyArray

DS.ManyArray Class Extends: Ember.Object Uses: Ember.MutableArray Uses: Ember.Evented Defined in: addon/-private/system/many-array.js:12 Module: ember-data A ManyArray is a MutableArray that represents the contents of a has-many relationship. The ManyArray is instantiated lazily the first time the relationship is requested. Inverses Often, the relationships in Ember Data applications will have an inverse. For example, imagine the following models are defined: app/models/post.js import DS f

DS.JSONSerializer#_getMappedKey()

_getMappedKey (key) Stringprivate Defined in addon/serializers/json.js:795 Looks up the property key that was set by the custom attr mapping passed to the serializer. Parameters: key String Returns: String key

DS.JSONSerializer#_mustSerialize()

_mustSerialize (key) Booleanprivate Defined in addon/serializers/json.js:841 When attrs.key.serialize is set to true then it takes priority over the other checks and the related attribute/relationship will be serialized Parameters: key String Returns: Boolean true if the key must be serialized

DS.JSONSerializer#_canSerialize()

_canSerialize (key) Booleanprivate Defined in addon/serializers/json.js:826 Check attrs.key.serialize property to inform if the key can be serialized Parameters: key String Returns: Boolean true if the key can be serialized

DS.JSONSerializer#serializePolymorphicType()

serializePolymorphicType (snapshot, json, relationship) Defined in addon/serializers/json.js:1255 You can use this method to customize how polymorphic objects are serialized. Objects are considered to be polymorphic if { polymorphic: true } is pass as the second argument to the DS.belongsTo function. Example app/serializers/comment.js import DS from 'ember-data'; export default DS.JSONSerializer.extend({ serializePolymorphicType: function(snapshot, json, relationship) { var key = re

DS.JSONSerializer#transformFor()

transformFor (attributeType, skipAssertion) DS.Transformprivate Defined in addon/serializers/json.js:1500 Parameters: attributeType String skipAssertion Boolean Returns: DS.Transform transform

DS.JSONSerializer#shouldSerializeHasMany()

shouldSerializeHasMany (snapshot, key, relationshipType) Boolean Defined in addon/serializers/json.js:857 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

DS.JSONSerializer#serializeIntoHash()

serializeIntoHash (hash, typeClass, snapshot, options) Defined in addon/serializers/json.js:1075 You can use this method to customize how a serialized record is added to the complete JSON hash to be sent to the server. By default the JSON Serializer does not namespace the payload and just sends the raw serialized JSON object. If your server expects namespaced keys, you should consider using the RESTSerializer. Otherwise you can override this method to customize how the record is added to t