DS.EmbeddedRecordsMixin#removeEmbeddedForeignKey()

removeEmbeddedForeignKey (snapshot, embeddedSnapshot, relationship, json)

Defined in addon/serializers/embedded-records-mixin.js:453

When serializing an embedded record, modify the property (in the json payload) that refers to the parent record (foreign key for relationship).

Serializing a belongsTo relationship removes the property that refers to the parent record

Serializing a hasMany relationship does not remove the property that refers to the parent record.

Parameters:

snapshot DS.Snapshot
embeddedSnapshot DS.Snapshot
relationship Object
json Object
doc_EmberJs
2016-11-30 16:49:33
Comments
Leave a Comment

Please login to continue.