Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/associations_test.go

    	}
    	DB.Migrator().DropTable(&AssociationEmptyUser{}, &AssociationEmptyPet{})
    	DB.AutoMigrate(&AssociationEmptyUser{}, &AssociationEmptyPet{})
    
    	id := uint(100)
    	user := AssociationEmptyUser{
    		ID:   id,
    		Name: "jinzhu",
    		Pets: []AssociationEmptyPet{
    			{AssociationEmptyUserID: &id, Name: "bar"},
    			{AssociationEmptyUserID: &id, Name: "foo"},
    		},
    	}
    
    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