- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Associations (0.09 sec)
-
statement.go
results[column] = result } else if column == "*" { notRestricted = result for _, dbName := range stmt.Schema.DBNames { results[dbName] = result } } else if column == clause.Associations { for _, rel := range stmt.Schema.Relationships.Relations { results[rel.Name] = result } } else if field := stmt.Schema.LookUpField(column); field != nil && field.DBName != "" {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 20.8K bytes - Viewed (0) -
generics.go
db.AddError(fmt.Errorf("relation %s not found", association)) return nil } } } else { db.AddError(fmt.Errorf("relation %s not found", association)) return nil } } if q.limitPerRecord > 0 { if relation.JoinTable != nil { tx.AddError(fmt.Errorf("many2many relation %s don't support LimitPerRecord", association)) return tx }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 15.5K bytes - Viewed (0) -
tests/generics_test.go
userIDs = append(userIDs, user.ID) } users2, err := db.Joins(clause.LeftJoin.Association("Manager"), nil). Joins(clause.LeftJoin.Association("Manager.Company"), nil). Joins(clause.LeftJoin.Association("Manager.NamedPet.Toy"), nil). Joins(clause.LeftJoin.Association("NamedPet.Toy"), nil). Joins(clause.LeftJoin.Association("NamedPet").As("t"), nil). Where(map[string]any{"id": userIDs}).Find(ctx) if err != nil {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0)