Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Perron (0.2 sec)

  1. tests/associations_has_many_test.go

    	}); err != nil {
    		t.Errorf("failed to replace item content, got error: %v", err)
    	}
    
    	if count := tx.Model(&item).Association("Contents").Count(); count != 3 {
    		t.Errorf("expected %d contents, got %d", 3, count)
    	}
    
    	var contents []ItemContent
    	if err := tx.Find(&contents).Error; err != nil {
    		t.Errorf("failed to find contents, got error: %v", err)
    	}
    	if len(contents) != 3 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 15.6K bytes
    - Viewed (0)
Back to top