Skip to content

Commit

Permalink
Update relationship.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Mar 18, 2022
1 parent d7fac4a commit df0b4a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/relationship.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function prepareRelationshipForTemplates(entityWithConfig, relationship, generat
return otherSideRelationship.relationshipName === relationship.otherEntityRelationshipName;
});
if (!otherRelationship) {
// TODO throw error at v8.
generator.warning(`Error at '${entityName}' definitions: 'otherEntityRelationshipName' is set with value '${relationship.otherEntityRelationshipName}' at relationship '${relationship.relationshipName}' but no back-reference was found at '${otherEntityName}'`);
} else if (
otherRelationship &&
Expand Down

0 comments on commit df0b4a4

Please sign in to comment.