You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only the ForumThread -> ForumPost relationship is preserved in the generated models, while the ProposalDiscussionThread -> ProposalDiscussionPost relationship is missing:
Changing any of the relationship field names (posts -> discussionPosts or thread -> discussionThread) in ProposalDiscussionThread -> ProposalDiscussionPost relationship resolves the issue.
The text was updated successfully, but these errors were encountered:
Lezek123
changed the title
Missing model relations when two different one-to-many entity relationships have the same field names
Missing model relations when two different one-to-many entity relationships use the same field names
Jul 1, 2021
Lezek123
added a commit
to Lezek123/substrate-runtime-joystream
that referenced
this issue
Jul 1, 2021
Key: Changing any of the relationship field names (posts -> discussionPosts or thread -> discussionThread) in ProposalDiscussionThread -> ProposalDiscussionPost relationship resolves the issue.
Version:
3.1.0-alpha.0
Minimal schema example:
Hydra codegen result:
Only the
ForumThread
->ForumPost
relationship is preserved in the generated models, while theProposalDiscussionThread
->ProposalDiscussionPost
relationship is missing:proposal-discussion-post.model.ts
proposal-discussion-thread.model.ts
Additional observations
Changing any of the relationship field names (
posts
->discussionPosts
orthread
->discussionThread
) inProposalDiscussionThread
->ProposalDiscussionPost
relationship resolves the issue.The text was updated successfully, but these errors were encountered: