[PSL] Do not allow references
arg on Many2Many relations on SQL
#11241
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/engines/datamodel
Issue about parsing/validation/rendering of the Prisma schema
tech/engines
Issue for tech Engines.
topic: breaking change
topic: prisma4
topic: relation-validation
Milestone
The following datamodel passes validation and is treated as a M:N relation. Its fields and references args though suggest it is a 1:M relation. We should add a validation preventing this confusion and ask the user to either :
fields andreferences args to make clear it is a M:N relationThe text was updated successfully, but these errors were encountered: