[API] Persist mutations

This commit is contained in:
Victor Woeltjen 2016-05-27 16:56:08 -07:00
parent 0525ba6b0b
commit 86ac80ddbd

View File

@ -58,7 +58,11 @@ define([
MCT.prototype.verbs = {
mutate: function (domainObject, mutator) {
return domainObject.useCapability('mutation', mutator);
return domainObject.useCapability('mutation', mutator)
.then(function () {
var persistence = domainObject.getCapability('persistence');
return persistence.persist();
});
}
};