Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EmbeddedRelations (0.12 sec)

  1. callbacks/preload.go

    	}
    	names := make([]string, 0, len(embeddedRelations.Relations)+len(embeddedRelations.EmbeddedRelations))
    	for _, relation := range embeddedRelations.Relations {
    		// skip first struct name
    		names = append(names, strings.Join(relation.Field.EmbeddedBindNames[1:], "."))
    	}
    	for _, relations := range embeddedRelations.EmbeddedRelations {
    		names = append(names, embeddedValues(relations)...)
    	}
    	return names
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. schema/relationship.go

    		if i < len(relation.Field.EmbeddedBindNames)-1 {
    			if relationships.EmbeddedRelations == nil {
    				relationships.EmbeddedRelations = map[string]*Relationships{}
    			}
    			if r := relationships.EmbeddedRelations[name]; r == nil {
    				relationships.EmbeddedRelations[name] = &Relationships{}
    			}
    			relationships = relationships.EmbeddedRelations[name]
    		} else {
    			if relationships.Relations == nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top