Skip to content

BelongsToMany with composite primary key? #1197

Answered by CodeDredd
KYSXD asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @KYSXD ,

The current docs states that Composite Key support works for hasOne, belongsTo & hasMany relations.

That is the state. BelongsToMany doesn't support composite key. I thought it wouldn't be used for that and it's compicated to implement so that's why it isn't implemented for belongToMany yet.

A cup of ☕ helps me a lot to be motivated implementing it 😉 if you need it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KYSXD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants