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

Commit aa2d1372 by Sushant Committed by Jan Aagaard Meier

[ci skip] docs updates (#6002)

1 parent 85477ddc
......@@ -791,7 +791,7 @@ Now we can create a project with multiple tags in the following way:
Product.create({
id: 1,
title: 'Chair',
Tags: [
tags: [
{ name: 'Alpha'},
{ name: 'Beta'}
]
......
......@@ -203,6 +203,7 @@ var BelongsToMany = function(source, target, options) {
* @param {Object} [options.where] An optional where clause to limit the associated models
* @param {String|Boolean} [options.scope] Apply a scope on the related model, or remove its default scope by passing false
* @param {String} [options.schema] Apply a schema on the related model
* @see {Model#findAll} for a full explanation of options
* @return {Promise<Array<Instance>>}
* @method getAssociations
*/
......
......@@ -78,6 +78,7 @@ var BelongsTo = function(source, target, options) {
* @param {Object} [options]
* @param {String|Boolean} [options.scope] Apply a scope on the related model, or remove its default scope by passing false.
* @param {String} [options.schema] Apply a schema on the related model
* @see {Model#findOne} for a full explanation of options
* @return {Promise<Instance>}
* @method getAssociation
*/
......@@ -97,6 +98,7 @@ var BelongsTo = function(source, target, options) {
*
* @param {Object} [values]
* @param {Object} [options] Options passed to `target.create` and setAssociation.
* @see {Model#create} for a full explanation of options
* @return {Promise}
* @method createAssociation
*/
......
......@@ -97,6 +97,7 @@ var HasMany = function(source, target, options) {
* @param {Object} [options.where] An optional where clause to limit the associated models
* @param {String|Boolean} [options.scope] Apply a scope on the related model, or remove its default scope by passing false
* @param {String} [options.schema] Apply a schema on the related model
* @see {Model#findAll} for a full explanation of options
* @return {Promise<Array<Instance>>}
* @method getAssociations
*/
......
......@@ -75,6 +75,7 @@ var HasOne = function(srcModel, targetModel, options) {
* @param {Object} [options]
* @param {String|Boolean} [options.scope] Apply a scope on the related model, or remove its default scope by passing false
* @param {String} [options.schema] Apply a schema on the related model
* @see {Model#findOne} for a full explanation of options
* @return {Promise<Instance>}
* @method getAssociation
*/
......@@ -93,6 +94,7 @@ var HasOne = function(srcModel, targetModel, options) {
*
* @param {Object} [values]
* @param {Object} [options] Options passed to `target.create` and setAssociation.
* @see {Model#create} for a full explanation of options
* @return {Promise}
* @method createAssociation
*/
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!