Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CheckUserUnscoped (0.12 sec)

  1. tests/preload_test.go

    	}
    
    	var user5 User
    	DB.Unscoped().Preload(clause.Associations+"."+clause.Associations).Find(&user5, "id = ?", user.ID)
    	CheckUserUnscoped(t, user5, user)
    
    	var user6 *User
    	DB.Unscoped().Preload("Pets.Toy").Find(&user6, "id = ?", user.ID)
    	CheckUserUnscoped(t, *user6, user)
    }
    
    func TestNestedPreloadWithNestedJoin(t *testing.T) {
    	type (
    		Preload struct {
    			ID       uint
    			Value    string
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
Back to top