不要怂,就是干,撸起袖子干!

Commit 501e6155 by Sushant

Docs : Spelling mistakes fixed

1 parent 7969e23a
Showing with 3 additions and 3 deletions
...@@ -1279,7 +1279,7 @@ Model.prototype.all = function(options) { ...@@ -1279,7 +1279,7 @@ Model.prototype.all = function(options) {
* @param {Boolean} [options.paranoid=true] If true, only non-deleted records will be returned. If false, both deleted and non-deleted records will be returned. Only applies if `options.paranoid` is true for the model. * @param {Boolean} [options.paranoid=true] If true, only non-deleted records will be returned. If false, both deleted and non-deleted records will be returned. Only applies if `options.paranoid` is true for the model.
* @param {Array<Object|Model>} [options.include] A list of associations to eagerly load using a left join. Supported is either `{ include: [ Model1, Model2, ...]}` or `{ include: [{ model: Model1, as: 'Alias' }]}`. If your association are set up with an `as` (eg. `X.hasMany(Y, { as: 'Z }`, you need to specify Z in the as attribute when eager loading Y). * @param {Array<Object|Model>} [options.include] A list of associations to eagerly load using a left join. Supported is either `{ include: [ Model1, Model2, ...]}` or `{ include: [{ model: Model1, as: 'Alias' }]}`. If your association are set up with an `as` (eg. `X.hasMany(Y, { as: 'Z }`, you need to specify Z in the as attribute when eager loading Y).
* @param {Model} [options.include[].model] The model you want to eagerly load * @param {Model} [options.include[].model] The model you want to eagerly load
* @param {String} [options.include[].as] The alias of the relation, in case the model you want to eagerly load is aliassed. For `hasOne` / `belongsTo`, this should be the singular name, and for `hasMany`, it should be the plural * @param {String} [options.include[].as] The alias of the relation, in case the model you want to eagerly load is aliased. For `hasOne` / `belongsTo`, this should be the singular name, and for `hasMany`, it should be the plural
* @param {Association} [options.include[].association] The association you want to eagerly load. (This can be used instead of providing a model/as pair) * @param {Association} [options.include[].association] The association you want to eagerly load. (This can be used instead of providing a model/as pair)
* @param {Object} [options.include[].where] Where clauses to apply to the child models. Note that this converts the eager load to an inner join, unless you explicitly set `required: false` * @param {Object} [options.include[].where] Where clauses to apply to the child models. Note that this converts the eager load to an inner join, unless you explicitly set `required: false`
* @param {Boolean} [options.include[].or=false] Whether to bind the ON and WHERE clause together by OR instead of AND. * @param {Boolean} [options.include[].or=false] Whether to bind the ON and WHERE clause together by OR instead of AND.
......
...@@ -1018,7 +1018,7 @@ Sequelize.prototype.drop = function(options) { ...@@ -1018,7 +1018,7 @@ Sequelize.prototype.drop = function(options) {
/** /**
* Test the connection by trying to authenticate * Test the connection by trying to authenticate
* *
* @fires success If authentication was successfull * @fires success If authentication was successful
* @error 'Invalid credentials' if the authentication failed (even if the database did not respond at all...) * @error 'Invalid credentials' if the authentication failed (even if the database did not respond at all...)
* @alias validate * @alias validate
* @return {Promise} * @return {Promise}
...@@ -1208,7 +1208,7 @@ Sequelize.where = Sequelize.condition = Sequelize.prototype.condition = Sequeliz ...@@ -1208,7 +1208,7 @@ Sequelize.where = Sequelize.condition = Sequelize.prototype.condition = Sequeliz
* @param {Function} [options.logging=false] A function that gets executed while running the query to log the sql. * @param {Function} [options.logging=false] A function that gets executed while running the query to log the sql.
* @return {Promise} * @return {Promise}
* @fires error If there is an uncaught error during the transaction * @fires error If there is an uncaught error during the transaction
* @fires success When the transaction has ended (either comitted or rolled back) * @fires success When the transaction has ended (either committed or rolled back)
*/ */
Sequelize.prototype.transaction = function(options, autoCallback) { Sequelize.prototype.transaction = function(options, autoCallback) {
if (typeof options === 'function') { if (typeof options === 'function') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!