[cli] generate Related
for m-to-n relation (#1075)
This commit is contained in:
parent
a786dfd616
commit
a3fb8e8b0d
@ -136,8 +136,7 @@ impl EntityTransformer {
|
||||
continue;
|
||||
}
|
||||
let is_conjunct_relation = entity.primary_keys.len() == entity.columns.len()
|
||||
&& rel.columns.len() == 2
|
||||
&& rel.ref_columns.len() == 2
|
||||
&& entity.relations.len() == 2
|
||||
&& entity.primary_keys.len() == 2;
|
||||
match is_conjunct_relation {
|
||||
true => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user