diff --git a/example/rel-belongs-to/main.go b/example/rel-belongs-to/main.go index ff1227739..955350a70 100644 --- a/example/rel-belongs-to/main.go +++ b/example/rel-belongs-to/main.go @@ -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() {