I'm trying to delete some records from a ManyArray with removeRecord().. The records are removed but when calling save() on the ManyArray there is no DELETE request for the deleted records..
actions: {
removeEmployee: function(employee) {
var employees = this.get("employees"); // ManyArray
employees.removeRecord( employee );
},
saveEmployees: function() {
var employees = this.get("employees"); // ManyArray
employees.save().then( function(employees) {
Ember.Logger.log("Success",employees);
} ).catch( function(error) {
Ember.Logger.log("Failed",error);
} );
}
}
Aucun commentaire:
Enregistrer un commentaire