* The promise is resolved with an array of Model instances if the query succeeds.
*
* __Alias__: _all_
*
* @param {Object} [options] A hash of options to describe the scope of the search
* @param {Object} [options.where] A hash of attributes to describe your search. See above for examples.
* @param {Array<String>|Object} [options.attributes] A list of the attributes that you want to select, or an object with `include` and `exclude` keys. To rename an attribute, you can pass an array, with two elements - the first is the name of the attribute in the DB (or some kind of expression such as `Sequelize.literal`, `Sequelize.fn` and so on), and the second is the name you want the attribute to have in the returned instance
...
...
@@ -4230,6 +4224,10 @@ Model.insertOrUpdate = function () {
Utils.deprecate('Model.insertOrUpdate has been deprecated, please use Model.upsert instead');
returnModel.upsert.apply(this,arguments);
};
Model.all=function(){
Utils.deprecate('Model.all has been deprecated, please use Model.findAll instead');
returnModel.findAll.apply(this,arguments);
};
Model.prototype.updateAttributes=function(){
Utils.deprecate('Instance.updateAttributes has been deprecated, please use Instance.update instead');