You need to save each song individually. sync
is not meant to be called directly, and only method 'read' is meant to work with a collection. sync('read')
is called during collection.fetch()
.
that = this;
this.model.save(null,{
success: function(model,response){
that.songCollection.each(function(song){
song.save({album: model.get('id')});
});
},
error: function(response){
console.log(response);
}
});