Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit aa2d1372
authored
Jun 03, 2016
by
Sushant
Committed by
Jan Aagaard Meier
Jun 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci skip] docs updates (#6002)
1 parent
85477ddc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
1 deletions
docs/docs/associations.md
lib/associations/belongs-to-many.js
lib/associations/belongs-to.js
lib/associations/has-many.js
lib/associations/has-one.js
docs/docs/associations.md
View file @
aa2d137
...
@@ -791,7 +791,7 @@ Now we can create a project with multiple tags in the following way:
...
@@ -791,7 +791,7 @@ Now we can create a project with multiple tags in the following way:
Product
.
create
({
Product
.
create
({
id
:
1
,
id
:
1
,
title
:
'Chair'
,
title
:
'Chair'
,
T
ags
:
[
t
ags
:
[
{
name
:
'Alpha'
},
{
name
:
'Alpha'
},
{
name
:
'Beta'
}
{
name
:
'Beta'
}
]
]
...
...
lib/associations/belongs-to-many.js
View file @
aa2d137
...
@@ -203,6 +203,7 @@ var BelongsToMany = function(source, target, options) {
...
@@ -203,6 +203,7 @@ var BelongsToMany = function(source, target, options) {
* @param {Object} [options.where] An optional where clause to limit the associated models
* @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|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
* @param {String} [options.schema] Apply a schema on the related model
* @see {Model#findAll} for a full explanation of options
* @return {Promise<Array<Instance>>}
* @return {Promise<Array<Instance>>}
* @method getAssociations
* @method getAssociations
*/
*/
...
...
lib/associations/belongs-to.js
View file @
aa2d137
...
@@ -78,6 +78,7 @@ var BelongsTo = function(source, target, options) {
...
@@ -78,6 +78,7 @@ var BelongsTo = function(source, target, options) {
* @param {Object} [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|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
* @param {String} [options.schema] Apply a schema on the related model
* @see {Model#findOne} for a full explanation of options
* @return {Promise<Instance>}
* @return {Promise<Instance>}
* @method getAssociation
* @method getAssociation
*/
*/
...
@@ -97,6 +98,7 @@ var BelongsTo = function(source, target, options) {
...
@@ -97,6 +98,7 @@ var BelongsTo = function(source, target, options) {
*
*
* @param {Object} [values]
* @param {Object} [values]
* @param {Object} [options] Options passed to `target.create` and setAssociation.
* @param {Object} [options] Options passed to `target.create` and setAssociation.
* @see {Model#create} for a full explanation of options
* @return {Promise}
* @return {Promise}
* @method createAssociation
* @method createAssociation
*/
*/
...
...
lib/associations/has-many.js
View file @
aa2d137
...
@@ -97,6 +97,7 @@ var HasMany = function(source, target, options) {
...
@@ -97,6 +97,7 @@ var HasMany = function(source, target, options) {
* @param {Object} [options.where] An optional where clause to limit the associated models
* @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|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
* @param {String} [options.schema] Apply a schema on the related model
* @see {Model#findAll} for a full explanation of options
* @return {Promise<Array<Instance>>}
* @return {Promise<Array<Instance>>}
* @method getAssociations
* @method getAssociations
*/
*/
...
...
lib/associations/has-one.js
View file @
aa2d137
...
@@ -75,6 +75,7 @@ var HasOne = function(srcModel, targetModel, options) {
...
@@ -75,6 +75,7 @@ var HasOne = function(srcModel, targetModel, options) {
* @param {Object} [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|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
* @param {String} [options.schema] Apply a schema on the related model
* @see {Model#findOne} for a full explanation of options
* @return {Promise<Instance>}
* @return {Promise<Instance>}
* @method getAssociation
* @method getAssociation
*/
*/
...
@@ -93,6 +94,7 @@ var HasOne = function(srcModel, targetModel, options) {
...
@@ -93,6 +94,7 @@ var HasOne = function(srcModel, targetModel, options) {
*
*
* @param {Object} [values]
* @param {Object} [values]
* @param {Object} [options] Options passed to `target.create` and setAssociation.
* @param {Object} [options] Options passed to `target.create` and setAssociation.
* @see {Model#create} for a full explanation of options
* @return {Promise}
* @return {Promise}
* @method createAssociation
* @method createAssociation
*/
*/
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment