MCPcopy Create free account
hub / github.com/dresende/node-orm2 / shouldSaveAssocs

Function shouldSaveAssocs

lib/Instance.js:43–49  ·  view source on GitHub ↗
(saveOptions)

Source from the content-addressed store, hash-verified

41 }
42 };
43 var shouldSaveAssocs = function (saveOptions) {
44 if (Model.settings.get("instance.saveAssociationsByDefault")) {
45 return saveOptions.saveAssociations !== false;
46 } else {
47 return !!saveOptions.saveAssociations;
48 }
49 };
50 var handleValidations = function (cb) {
51 var pending = [], errors = [], required, alwaysValidate;
52

Callers 2

saveNewFunction · 0.85
nextFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected