Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/named_polymorphic_test.go

    		Name: "treadmill 2",
    	})
    
    	hamsterToy = Toy{}
    	DB.Model(&hamster).Association("PreferredToy").Find(&hamsterToy)
    	if hamsterToy.Name != "bike 2" {
    		t.Errorf("Should update has one polymorphic association with Append")
    	}
    
    	hamsterToy = Toy{}
    	DB.Model(&hamster).Association("OtherToy").Find(&hamsterToy)
    	if hamsterToy.Name != "treadmill 2" {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jul 08 09:59:40 UTC 2020
    - 4.2K bytes
    - Viewed (0)
Back to top