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

Commit 44784fca by Márton Csordás Committed by GitHub

docs: fix typo in the associations docs (#12438)

1 parent 2de3377d
Showing with 2 additions and 2 deletions
......@@ -287,8 +287,8 @@ const ActorMovies = sequelize.define('ActorMovies', {
}
}
});
Movie.belongsToMany(Actor, { through: 'ActorMovies' });
Actor.belongsToMany(Movie, { through: 'ActorMovies' });
Movie.belongsToMany(Actor, { through: ActorMovies });
Actor.belongsToMany(Movie, { through: ActorMovies });
```
The above yields the following SQL in PostgreSQL, which is equivalent to the one shown above:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!