Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for hasPolymorphicRelation (0.28 sec)

  1. schema/relationship.go

    			schema.Relationships.Many2Many = append(schema.Relationships.Many2Many, relation)
    		}
    	}
    
    	return relation
    }
    
    // hasPolymorphicRelation check if has polymorphic relation
    // 1. `POLYMORPHIC` tag
    // 2. `POLYMORPHICTYPE` and `POLYMORPHICID` tag
    func hasPolymorphicRelation(tagSettings map[string]string) bool {
    	if _, ok := tagSettings["POLYMORPHIC"]; ok {
    		return true
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Aug 18 11:44:52 UTC 2025
    - 23.1K bytes
    - Viewed (1)
Back to top