Skip to content

Commit

Permalink
[cli] generate Related for m-to-n relation (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 authored Oct 26, 2022
1 parent a786dfd commit a3fb8e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sea-orm-codegen/src/entity/transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit a3fb8e8

Please sign in to comment.