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

Method mixin

lib/associations/has-many.js:147–157  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

145 }
146
147 mixin(obj) {
148 const methods = ['get', 'count', 'hasSingle', 'hasAll', 'set', 'add', 'addMultiple', 'remove', 'removeMultiple', 'create'];
149 const aliases = {
150 hasSingle: 'has',
151 hasAll: 'has',
152 addMultiple: 'add',
153 removeMultiple: 'remove'
154 };
155
156 Helpers.mixinMethods(this, obj, methods, aliases);
157 }
158
159 /**
160 * Get everything currently associated with this, using an optional where clause.

Callers 1

hasManyFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected