mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
entc/gen: support type-based matching for edge-schema columns (#3306)
In case of no match by foreign-keys, we search by edge-type. This can happen if the type (edge owner) is named T, but the edge-schema E names its edge field as u_id. We consider it as a match if there is only one usage of T in E.
This commit is contained in:
@@ -8,8 +8,8 @@ linters-settings:
|
||||
dupl:
|
||||
threshold: 100
|
||||
funlen:
|
||||
lines: 120
|
||||
statements: 120
|
||||
lines: 140
|
||||
statements: 140
|
||||
goheader:
|
||||
template: |-
|
||||
Copyright 2019-present Facebook Inc. All rights reserved.
|
||||
|
||||
Reference in New Issue
Block a user