diff --git a/lib/model.js b/lib/model.js index 432083ec..9c05cf5a 100644 --- a/lib/model.js +++ b/lib/model.js @@ -248,6 +248,16 @@ module.exports = function(registry) { }); }; + if ('injectOptionsFromRemoteContext' in options) { + console.warn(g.f( + '%s is using model setting %s which is no longer available.', + typeName, 'injectOptionsFromRemoteContext')); + console.warn(g.f( + 'Please rework your app to use the offical solution for injecting ' + + '"options" argument from request context,\nsee %s', + 'http://loopback.io/doc/en/lb3/Using-current-context.html')); + } + // resolve relation functions sharedClass.resolve(function resolver(define) { var relations = ModelCtor.relations || {};