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

Commit 1f8cc7cc by Ryer Wong Committed by Jan Aagaard Meier

highlight missing method names (#6013)

1 parent 683515b8
Showing with 1 additions and 1 deletions
...@@ -189,7 +189,7 @@ var Project = sequelize.define('project', {/* ... */}) ...@@ -189,7 +189,7 @@ var Project = sequelize.define('project', {/* ... */})
Project.hasMany(User, {as: 'Workers'}) Project.hasMany(User, {as: 'Workers'})
``` ```
This will add the attribute `WorkersId` or `Workers_id` to User. Instances of Project will get the accessors getWorkers and setWorkers. We could just leave it the way it is and let it be a one-way association. This will add the attribute `WorkersId` or `Workers_id` to User. Instances of Project will get the accessors `getWorkers` and `setWorkers`. We could just leave it the way it is and let it be a one-way association.
But we want more! Let's define it the other way around by creating a many to many association in the next section: But we want more! Let's define it the other way around by creating a many to many association in the next section:
## Belongs-To-Many associations ## Belongs-To-Many associations
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!