Skip to content

Multiple belongsToMany relationships on the same entity #1384

Answered by thetutlage
andyford asked this question in Help
Discussion options

You must be logged in to vote

You have to define the custom key name in your relationship declaration as well. Docs does cover it https://adonisjs.com/docs/4.1/relationships#_belongs_to_many

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@andyford
Comment options

Answer selected by andyford
Comment options

You must be logged in to vote
2 replies
@McSneaky
Comment options

@andyford
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants