Isolate to_many from one_to_one in bdb

This commit is contained in:
Aaron L 2016-09-17 23:11:50 -07:00
parent 9bc5b3fa40
commit b918e9ef9e
5 changed files with 182 additions and 94 deletions

View file

@ -119,5 +119,6 @@ func setForeignKeyConstraints(t *Table, tables []Table) {
}
func setRelationships(t *Table, tables []Table) {
t.ToOneRelationships = toOneRelationships(*t, tables)
t.ToManyRelationships = toManyRelationships(*t, tables)
}