diff --git a/lib/dao.js b/lib/dao.js index 835ca8a2..60fc81a9 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -3250,8 +3250,11 @@ function(data, options, cb) { var typedData = convertSubsetOfPropertiesByType(inst, data); context.data = typedData; - function updateAttributesCallback(err) { + function updateAttributesCallback(err, data) { if (err) return cb(err); + if (typeof connector.generateContextData === 'function') { + context = connector.generateContextData(context, data); + } var ctx = { Model: Model, data: context.data,