MCPcopy
hub / github.com/sequelize/sequelize / hasMany

Method hasMany

src/model.js:4619–4619  ·  view source on GitHub ↗

* Creates a 1:m association between this (the source) and the provided target. * The foreign key is added on the target. * * @param {Model} target Target model * @param {object} [options] hasMany association options * @param {boolean} [options.ho

(target, options)

Source from the content-addressed store, hash-verified

4617 * User.hasMany(Profile) // This will add userId to the profile table
4618 */
4619 static hasMany(target, options) {} // eslint-disable-line
4620
4621 /**
4622 * Create an N:M association with a join table. Defining `through` is required.

Callers 15

model.test.jsFile · 0.80
sequelize.test.jsFile · 0.80
instance.test.jsFile · 0.80
include.test.jsFile · 0.80
query.test.jsFile · 0.80
dao.test.jsFile · 0.80
dao.test.jsFile · 0.80
alias.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected