MCPcopy
hub / github.com/sequelize/sequelize / mixin

Method mixin

lib/associations/belongs-to-many.js:397–407  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

395 }
396
397 mixin(obj) {
398 const methods = ['get', 'count', 'hasSingle', 'hasAll', 'set', 'add', 'addMultiple', 'remove', 'removeMultiple', 'create'];
399 const aliases = {
400 hasSingle: 'has',
401 hasAll: 'has',
402 addMultiple: 'add',
403 removeMultiple: 'remove'
404 };
405
406 Helpers.mixinMethods(this, obj, methods, aliases);
407 }
408
409 /**
410 * Get everything currently associated with this, using an optional where clause.

Callers 1

belongsToManyFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected