Skip to content

Link another struct - ForeignKey #6042

Answered by m-mattia-m
m-mattia-m asked this question in Q&A
Discussion options

You must be logged in to vote

If anyone recognizes my problem from above I would still like to know my fault. For all those who have a similar problem, I have my solution here.

err := dbClient.db.Preload(clause.Associations).First(&submission).Error

gorm.io-preload-all

Replies: 1 comment

Comment options

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