We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93e6150 commit 10c2f7bCopy full SHA for 10c2f7b
packages/schema/src/language-server/validator/datamodel-validator.ts
@@ -298,7 +298,7 @@ export default class DataModelValidator implements AstValidator<DataModel> {
298
// if both the field is array, then it's an implicit many-to-many relation
299
if (!(field.type.array && oppositeField.type.array)) {
300
[field, oppositeField].forEach((f) => {
301
- if (!this.isSelfRelation(f, thisRelation.name)) {
+ if (!this.isSelfRelation(f)) {
302
accept(
303
'error',
304
'Field for one side of relation must carry @relation attribute with both "fields" and "references"',
0 commit comments