Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for PersonID (0.06 sec)

  1. tests/scan_test.go

    	address1 := Address{Name: "address 1"}
    	address2 := Address{Name: "address 2"}
    	DB.Save(&address1).Save(&address2)
    
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address1.ID)})
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address2.ID)})
    	DB.Create(&PersonAddress{PersonID: person2.ID, AddressID: int(address1.ID)})
    
    	var personAddressInfoList []*PersonAddressInfo
    	if err := DB.Select("people.*, addresses.*").
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top