Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fromfile (0.08 sec)

  1. tests/associations_test.go

    	member := Member{Refer: 1, Name: "foreign_key_constraints", Profile: Profile{Name: "my_profile"}}
    
    	DB.Create(&member)
    
    	var profile Profile
    	if err := DB.First(&profile, "id = ?", member.Profile.ID).Error; err != nil {
    		t.Fatalf("failed to find profile, got error: %v", err)
    	} else if profile.MemberID != member.ID {
    		t.Fatalf("member id is not equal: expects: %v, got: %v", member.ID, profile.MemberID)
    	}
    
    	member.Profile = Profile{}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top