MCPcopy
hub / github.com/sequelize/sequelize / belongsToMany

Method belongsToMany

lib/model.js:4494–4494  ·  view source on GitHub ↗

* Create an N:M association with a join table. Defining `through` is required. * * @param {Model} target Target model * @param {object} options belongsToMany association options * @param {boolean} [options.hooks=false] Set to true to run before-/aft

(target, options)

Source from the content-addressed store, hash-verified

4492 * Project.belongsToMany(User, { through: UserProjects })
4493 */
4494 static belongsToMany(target, options) {} // eslint-disable-line
4495
4496 /**
4497 * Creates an association between this (the source) and the provided target. The foreign key is added on the target.

Callers 15

model.tsFile · 0.80
model.test.jsFile · 0.80
include.test.jsFile · 0.80
executeTestFunction · 0.80
dao.test.jsFile · 0.80
errors.test.jsFile · 0.80
errors.test.jsFile · 0.80

Calls

no outgoing calls

Tested by 1

executeTestFunction · 0.64