MCPcopy
hub / github.com/sequelize/sequelize / setKeys

Method setKeys

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

Source from the content-addressed store, hash-verified

3631 // Loop and call set
3632 if (options.attributes) {
3633 const setKeys = data => {
3634 for (const k of data) {
3635 if (values[k] === undefined) {
3636 continue;
3637 }
3638 this.set(k, values[k], options);
3639 }
3640 };
3641 setKeys(options.attributes);
3642 if (this.constructor._hasVirtualAttributes) {
3643 setKeys(this.constructor._virtualAttributes);

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected