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

Function mapKeysToString

lib/Associations/Many.js:195–199  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

193 if (_.isEmpty(Instances)) return cb(null, false);
194
195 var mapKeysToString = function (item) {
196 return _.map(association.model.keys, function (k) {
197 return item[k];
198 }).join(',')
199 }
200
201 var foundItemsIDs = _(foundItems).map(mapKeysToString).uniq().value();
202 var InstancesIDs = _(Instances ).map(mapKeysToString).uniq().value();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected