Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for polymorphism (0.41 sec)

  1. tests/update_has_many_test.go

    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user4 User
    	DB.Preload("Pets").Find(&user4, "id = ?", user.ID)
    	CheckUser(t, user4, user)
    
    	t.Run("Polymorphic", func(t *testing.T) {
    		user := *GetUser("update-has-many", Config{})
    
    		if err := DB.Create(&user).Error; err != nil {
    			t.Fatalf("errors happened when create: %v", err)
    		}
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 2K bytes
    - Viewed (0)
  2. tests/association_generics_test.go

    		t.Fatalf("Set Update many2many clear failed: %v", err)
    	} else if rows != 0 {
    		t.Fatalf("expected 0 rows affected, got %d", rows)
    	}
    	AssertAssociationCount(t, user, "Languages", 0, "after clear")
    }
    
    // Polymorphic Tools create and unlink
    func TestClauseAssociationSetUpdatePolymorphicTools(t *testing.T) {
    	ctx := context.Background()
    	user := User{Name: "TestClauseAssociationSetUpdatePolymorphicTools", Age: 25}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 05:42:26 UTC 2025
    - 37.9K bytes
    - Viewed (0)
  3. tests/associations_has_many_test.go

    	// Find
    	var toys []Toy
    	if DB.Model(&users).Association("Toys").Find(&toys); len(toys) != 6 {
    		t.Errorf("toys count should be %v, but got %v", 6, len(toys))
    	}
    
    	// Find Tools (polymorphic with custom type and id)
    	var tools []Tools
    	DB.Model(&users).Association("Tools").Find(&tools)
    
    	if len(tools) != 2 {
    		t.Errorf("tools count should be %v, but got %v", 2, len(tools))
    	}
    
    	// Append
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 04:33:27 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  4. CHANGELOG/CHANGELOG-1.9.md

    ### **Autoscaling**
    
    *   HorizontalPodAutoscaler objects now properly functions on scalable resources in any API group. Fixed by adding a polymorphic scale client. ([#53743](https://github.com/kubernetes/kubernetes/pull/53743),[ @DirectXMan12](https://github.com/DirectXMan12))
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Tue Nov 16 10:46:27 UTC 2021
    - 313.7K bytes
    - Viewed (0)
  5. doc/go_spec.html

    <code>Add</code> and <code>Slice</code>.
    </li>
    </ul>
    
    <h4 id="Go_1.18">Go 1.18</h4>
    <p>
    The 1.18 release adds polymorphic functions and types ("generics") to the language.
    Specifically:
    </p>
    <ul>
    <li>
    The set of <a href="#Operators_and_punctuation">operators and punctuation</a> includes the new token <code>~</code>.
    </li>
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 02 23:07:19 UTC 2025
    - 286.5K bytes
    - Viewed (1)
Back to top