Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for relation_empty (0.07 sec)

  1. tests/joins_test.go

    	home := &Building{Name: "relation_empty"}
    	DB.Create(home)
    
    	var entries []Building
    	assert.NotPanics(t, func() {
    		assert.NoError(t,
    			DB.Debug().Preload("Owner.Furnitures").
    				Joins("Owner.Company").
    				Find(&entries).Error)
    	})
    
    	AssertEqual(t, entries, []Building{{Model: home.Model, Name: "relation_empty", Owner: Owner{Company: Company{}}}})
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:58:13 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top