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

Function rememberKeys

lib/Instance.js:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 });
34 };
35 var rememberKeys = function () {
36 var i, prop;
37
38 for(i = 0; i < opts.keyProperties.length; i++) {
39 prop = opts.keyProperties[i];
40 opts.originalKeyValues[prop.name] = opts.data[prop.name];
41 }
42 };
43 var shouldSaveAssocs = function (saveOptions) {
44 if (Model.settings.get("instance.saveAssociationsByDefault")) {
45 return saveOptions.saveAssociations !== false;

Callers 3

saveNewFunction · 0.85
savePersistedFunction · 0.85
InstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected