Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for level2_level3 (0.06 sec)

  1. tests/preload_suits_test.go

    		}
    		Level3 struct {
    			ID      uint
    			Value   string
    			Level2s []Level2 `gorm:"many2many:level2_level3;"`
    		}
    	)
    
    	DB.Migrator().DropTable(&Level3{}, &Level2{}, &Level1{}, "level1_level2", "level2_level3")
    
    	if err := DB.AutoMigrate(&Level3{}, &Level2{}, &Level1{}); err != nil {
    		t.Error(err)
    	}
    
    	want := Level3{
    		Value: "Level3",
    		Level2s: []Level2{
    			{
    				Value: "Bob",
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Mar 18 05:38:46 UTC 2022
    - 30.3K bytes
    - Viewed (0)
Back to top