* Creates an 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] hasOne association options * @param {boolean} [options.hooks=false] Set to tru
(target, options)
| 4513 | * User.hasOne(Profile) class="cm">// This will add userId to the profile table |
| 4514 | */ |
| 4515 | static hasOne(target, options) {} class="cm">// eslint-disable-line |
| 4516 | |
| 4517 | /** |
| 4518 | * Creates an association between this (the source) and the provided target. The foreign key is added on the source. |
no outgoing calls