Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/association_generics_test.go

    	if len(updatedUser.Languages) != 2 {
    		t.Fatalf("expected 2 languages, got %d", len(updatedUser.Languages))
    	}
    }
    
    // Test Set + Create with belongs-to associations using real database
    func TestClauseAssociationSetCreateWithBelongsTo(t *testing.T) {
    	ctx := context.Background()
    
    	// Create a company first using real database
    	company := Company{Name: "Test Company"}
    	if err := DB.Create(&company).Error; err != nil {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 05:42:26 UTC 2025
    - 37.9K bytes
    - Viewed (0)
Back to top