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

Function setupAssociations

lib/Model.js:92–96  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

90 };
91
92 var setupAssociations = function (instance) {
93 OneAssociation.extend(model, instance, opts.driver, one_associations, assoc_opts);
94 ManyAssociation.extend(model, instance, opts.driver, many_associations, assoc_opts, createInstance);
95 ExtendAssociation.extend(model, instance, opts.driver, extend_associations, assoc_opts);
96 };
97
98 var pending = 2, create_err = null;
99 var instance = new Instance(model, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected