Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPreloadManyToManyCallbacks (0.21 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"`
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Mar 18 05:38:46 GMT 2022
    - 30.3K bytes
    - Viewed (0)
Back to top