Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for omit_create (0.11 sec)

  1. tests/create_test.go

    	user.Birthday = nil
    	user.Pets = nil
    	user.Company = Company{}
    	user.Team = nil
    	user.Friends = nil
    
    	CheckUser(t, user2, user)
    }
    
    func TestOmitWithCreate(t *testing.T) {
    	user := *GetUser("omit_create", Config{Account: true, Pets: 3, Toys: 3, Company: true, Manager: true, Team: 3, Languages: 3, Friends: 4})
    	DB.Omit("Account", "Toys", "Manager", "Birthday").Create(&user)
    
    	var result User
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
Back to top