We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78e9059 commit 5adc0ceCopy full SHA for 5adc0ce
tests/embedded_struct_test.go
@@ -236,8 +236,15 @@ func TestEmbeddedScanValuer(t *testing.T) {
236
}
237
238
func TestEmbeddedRelations(t *testing.T) {
239
+ type EmbUser struct {
240
+ gorm.Model
241
+ Name string
242
+ Age uint
243
+ Languages []Language `gorm:"many2many:EmbUserSpeak;"`
244
+ }
245
+
246
type AdvancedUser struct {
- User `gorm:"embedded"`
247
+ EmbUser `gorm:"embedded"`
248
Advanced bool
249
250
0 commit comments