Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CreatedByID (0.14 sec)

  1. schema/relationship_test.go

    	relSchema := user.Relationships.Relations["Creators"].FieldSchema
    	if user != relSchema {
    		t.Fatalf("schema should be same, expects %p but got %p", user, relSchema)
    	}
    }
    
    type CreatedByModel struct {
    	CreatedByID uint
    	CreatedBy   *CreatedUser
    }
    
    type CreatedUser struct {
    	gorm.Model
    	CreatedByModel
    }
    
    func TestEmbeddedRelation(t *testing.T) {
    	checkStructRelation(t, &CreatedUser{}, Relation{
    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