Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NestedAddress (0.24 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,
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.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)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top