mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: copies interceptors on Clone (#3194)
This commit is contained in:
@@ -301,6 +301,7 @@ func (nq *NodeQuery) Clone() *NodeQuery {
|
||||
limit: nq.limit,
|
||||
offset: nq.offset,
|
||||
order: append([]OrderFunc{}, nq.order...),
|
||||
inters: append([]Interceptor{}, nq.inters...),
|
||||
predicates: append([]predicate.Node{}, nq.predicates...),
|
||||
withParent: nq.withParent.Clone(),
|
||||
withChildren: nq.withChildren.Clone(),
|
||||
|
||||
Reference in New Issue
Block a user