strongloop/loopback-datasource-juggler — pull request #117 by romariclaurent (2014-05-22 11:20:22+00:00)
Title: Changes in beforeSave are ignored when calling updateAttributes

Hey guys !

Changes made in beforeSave/beforeUpdate hooks are ignored when the updateAttributes method is called.

Ex:
product.beforeSave = function (next) {
this.title = "This is never saved";
}

I think I found the issue. The instance data is overridden after the hooks are called.

Thanks

Rom