MCPcopy
hub / github.com/sequelize/sequelize / _transformStringAssociation

Method _transformStringAssociation

lib/model.js:332–340  ·  view source on GitHub ↗
(include, self)

Source from the content-addressed store, hash-verified

330 }
331
332 static _transformStringAssociation(include, self) {
333 if (self && typeof include === 'string') {
334 if (!Object.prototype.hasOwnProperty.call(self.associations, include)) {
335 throw new Error(`Association with alias "${include}" does not exist on ${self.name}`);
336 }
337 return self.associations[include];
338 }
339 return include;
340 }
341
342 static _conformInclude(include, self) {
343 if (include) {

Callers 1

_conformIncludeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected