Call DefaultTableNameHandler for JoinTableHandler's table

This commit is contained in:
Jinzhu 2018-02-12 09:43:28 +08:00
parent c54d23473c
commit 49934ff3bf
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ func (s *JoinTableHandler) Setup(relationship *Relationship, tableName string, s
// Table return join table's table name
func (s JoinTableHandler) Table(db *DB) string {
return s.TableName
return DefaultTableNameHandler(db, s.TableName)
}
func (s JoinTableHandler) updateConditionMap(conditionMap map[string]interface{}, db *DB, joinTableSources []JoinTableSource, sources ...interface{}) {