entc/gen: copies interceptors on Clone (#3194)

This commit is contained in:
Pedro Henrique
2022-12-28 01:29:48 -03:00
committed by GitHub
parent c868f4a174
commit 8307c2eaba
136 changed files with 161 additions and 0 deletions

View File

@@ -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(),