Skip to content

Commit

Permalink
fix: fix relation tag
Browse files Browse the repository at this point in the history
  • Loading branch information
agtabesh committed Jan 22, 2023
1 parent 635592d commit a3eedff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/rel-belongs-to/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type User struct {
ID int64 `bun:",pk,autoincrement"`
Name string
ProfileID int64
Profile *Profile `bun:"rel:belongs-to,join=profile_id=id"`
Profile *Profile `bun:"rel:belongs-to,join:profile_id=id"`
}

func main() {
Expand Down

0 comments on commit a3eedff

Please sign in to comment.