formatting cleanup
This commit is contained in:
parent
6ecce561e6
commit
e355abe5e3
@ -342,11 +342,10 @@ func (scope *Scope) GetModelStruct() *ModelStruct {
|
||||
|
||||
// Check for arbitrary join conditions supplied in the tag
|
||||
|
||||
if arbitraryConditions,_ := field.TagSettingsGet("ARBITRARY_JOIN_CONDITIONS"); arbitraryConditions != "" {
|
||||
if arbitraryConditions, _ := field.TagSettingsGet("ARBITRARY_JOIN_CONDITIONS"); arbitraryConditions != "" {
|
||||
relationship.ArbitraryJoinConditions = strings.Split(arbitraryConditions, ",")
|
||||
}
|
||||
|
||||
|
||||
joinTableHandler := JoinTableHandler{}
|
||||
joinTableHandler.Setup(relationship, ToTableName(many2many), reflectType, elemType)
|
||||
relationship.JoinTableHandler = &joinTableHandler
|
||||
|
Loading…
x
Reference in New Issue
Block a user