Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/associations_test.go

    	id := uint(100)
    	user := AssociationEmptyUser{
    		ID:   id,
    		Name: "jinzhu",
    		Pets: []AssociationEmptyPet{
    			{AssociationEmptyUserID: &id, Name: "bar"},
    			{AssociationEmptyUserID: &id, Name: "foo"},
    		},
    	}
    
    	err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Create(&user).Error
    	if err != nil {
    		t.Fatalf("Failed to create, got error: %v", err)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top