Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPreloadManyToManyCallbacks (0.13 sec)

  1. tests/preload_suits_test.go

    		})
    	}
    
    	if !reflect.DeepEqual(got, want) {
    		t.Errorf("got %s; want %s", toJSONString(got), toJSONString(want))
    	}
    }
    
    func TestPreloadManyToManyCallbacks(t *testing.T) {
    	type (
    		Level2 struct {
    			ID   uint
    			Name string
    		}
    		Level1 struct {
    			ID      uint
    			Name    string
    			Level2s []Level2 `gorm:"many2many:level1_level2s"`
    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