mirror of
https://github.com/ent/ent.git
synced 2026-05-28 09:49:08 +03:00
schema/edge: fix edge annotations with to/from builders (#679)
This commit is contained in:
@@ -190,7 +190,7 @@ func (g *Graph) addEdges(schema *load.Schema) {
|
||||
Unique: ref.Unique,
|
||||
Optional: !ref.Required,
|
||||
StructTag: ref.Tag,
|
||||
Annotations: e.Annotations,
|
||||
Annotations: ref.Annotations,
|
||||
})
|
||||
default:
|
||||
panic(graphError{"edge must be either an assoc or inverse edge"})
|
||||
|
||||
Reference in New Issue
Block a user