Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NestedAddress (0.17 sec)

  1. tests/preload_test.go

    				},
    				AddressID: org.AddressID,
    				Address:   nil,
    				NestedAddress: NestedAddress{EmbeddedAddress{
    					ID:        org.NestedAddress.ID,
    					Name:      org.NestedAddress.Name,
    					CountryID: org.NestedAddress.CountryID,
    					Country:   nil,
    				}},
    			},
    		}, {
    			name:     "nested address country",
    			preloads: map[string][]interface{}{"NestedAddress.Country": {}},
    			expect: Org{
    				ID: org.ID,
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. schema/relationship_test.go

    		VisitingAddress Address `gorm:"embedded;embeddedPrefix:visiting_address_"`
    		AddressID       int
    		Address         struct {
    			ID int
    			Address
    		}
    		NestedAddress *NestedAddress `gorm:"embedded;embeddedPrefix:nested_address_"`
    		CountryMixin
    	}
    
    	s, err := schema.Parse(&Org{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    		t.Errorf("Failed to parse schema, got error %v", err)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top