* Update the underlying data value * * @param {string} key key to set in instance data store * @param {any} value new value for given key *
(key, value)
| 3617 | * |
| 3618 | */ |
| 3619 | setDataValue(key, value) { |
| 3620 | const originalValue = this._previousDataValues[key]; |
| 3621 | |
| 3622 | if (!_.isEqual(value, originalValue)) { |
| 3623 | this.changed(key, true); |
| 3624 | } |
| 3625 | |
| 3626 | this.dataValues[key] = value; |
| 3627 | } |
| 3628 | |
| 3629 | /** |
| 3630 | * If no key is given, returns all values of the instance, also invoking virtual getters. |