diff --git a/lib/waterline/utils/query/private/normalize-criteria.js b/lib/waterline/utils/query/private/normalize-criteria.js index 21304a0ad..afbfcc8a5 100644 --- a/lib/waterline/utils/query/private/normalize-criteria.js +++ b/lib/waterline/utils/query/private/normalize-criteria.js @@ -239,6 +239,9 @@ module.exports = function normalizeCriteria(criteria, modelIdentity, orm, meta) 'usage has changed. Now, to run aggregate queries using the `groupBy` operator, '+ 'use a native query instead.\n'+ '\n'+ + 'Alternatively, if you are using `groupBy` as a column/attribute name then '+ + 'please be advised that some things won\'t work as expected.\n'+ + '\n'+ 'For more info, visit:\n'+ 'http://sailsjs.com/docs/upgrading/to-v1.0' ); @@ -265,6 +268,9 @@ module.exports = function normalizeCriteria(criteria, modelIdentity, orm, meta) ' // ...'+'\n'+ '});'+'\n'+ '```\n'+ + 'Alternatively, if you are using `sum` as a column/attribute name then '+ + 'please be advised that some things won\'t work as expected.\n'+ + '\n'+ 'For more info, see:\n'+ 'http://sailsjs.com/docs/reference/waterline-orm/models/sum' ); @@ -288,6 +294,9 @@ module.exports = function normalizeCriteria(criteria, modelIdentity, orm, meta) ' // ...'+'\n'+ '});'+'\n'+ '```\n'+ + 'Alternatively, if you are using `average` as a column/attribute name then '+ + 'please be advised that some things won\'t work as expected.\n'+ + '\n'+ 'For more info, see:\n'+ 'http://sailsjs.com/docs/reference/waterline-orm/models/avg' ); @@ -322,6 +331,9 @@ module.exports = function normalizeCriteria(criteria, modelIdentity, orm, meta) ' }'+'\n'+ '});'+'\n'+ '```\n'+ + 'Alternatively, if you are using `min` as a column/attribute name then '+ + 'please be advised that some things won\'t work as expected.\n'+ + '\n'+ 'For more info, see:\n'+ 'http://sailsjs.com/docs/reference/waterline-orm/models/find' ); @@ -356,6 +368,9 @@ module.exports = function normalizeCriteria(criteria, modelIdentity, orm, meta) ' }'+'\n'+ '});'+'\n'+ '```\n'+ + 'Alternatively, if you are using `max` as a column/attribute name then '+ + 'please be advised that some things won\'t work as expected.\n'+ + '\n'+ 'For more info, see:\n'+ 'http://sailsjs.com/docs/reference/waterline-orm/models/find' );