Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Filmmuseum (0.04 sec)

  1. tests/error_translator_test.go

    	}
    
    	city := City{Name: "Amsterdam"}
    
    	err = db.Create(&city).Error
    	if err != nil {
    		t.Fatalf("failed to create city: %v", err)
    	}
    
    	err = db.Create(&Museum{Name: "Eye Filmmuseum", CityID: city.ID}).Error
    	if err != nil {
    		t.Fatalf("failed to create museum: %v", err)
    	}
    
    	err = db.Create(&Museum{Name: "Dungeon", CityID: 123}).Error
    	if !errors.Is(err, gorm.ErrForeignKeyViolated) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jul 12 13:21:22 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top