Open fhendrikx opened 1 month ago
Looks like I'm running into the same issue... reflect: call of reflect.Value.Field on slice Value
db.WithContext(
r.Context(),
).Model(
&model.User{},
).InnerJoins(
"Auths",
db.Where(&model.UserAuth{
Provider: "scim",
}),
).Order(
"username ASC",
).Find(
&records,
)
Hi @tboerger Any thoughts on efficient work-arounds?
I haven't found any working solution based on Gorm. Since nobody is really responding to this issue I have simply switched away from Form for my small project to Bun.
Thanks, I'm considering simply going back to using sqlx.
GORM Playground Link
https://github.com/go-gorm/playground/pull/766
Description
I have a simple example here that shows when using First() I can preload the Pets and Pets.Toy relationship for a User, however, when trying to use the DB.Model and Rows() function to load multiple Users, this fails with the error:
I apologies in advance if I have misunderstood something about GORM.
OS: Debian 12 GORM: 1.25.4 DB: Postgres 15
Thanks, Ferry