Skip to content

Conversation

medgardo
Copy link

Fixed bidirectional examples that were inconsistent.

  • The model Country and Countries was used. I updated all of the models in the example to use singular names.
  • Updated association aliases to be plural names citizen -> citizens as recommended for many-to-many associations
  • Fixed an error associating User to User (User.belongsToMany(User, { foreignKey: 'user_id' });) instead of to Country as further explained in the example

Thanks for the work on v7, it's looking great. I'd be happy to make changes if I misunderstood the intent of the examples here.

@medgardo medgardo requested a review from a team as a code owner April 11, 2024 20:16
@medgardo medgardo requested review from ephys and WikiRik April 11, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants