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:
@@ -278,6 +278,7 @@ func (cq *CardQuery) Clone() *CardQuery {
|
||||
limit: cq.limit,
|
||||
offset: cq.offset,
|
||||
order: append([]OrderFunc{}, cq.order...),
|
||||
inters: append([]Interceptor{}, cq.inters...),
|
||||
predicates: append([]predicate.Card{}, cq.predicates...),
|
||||
withOwner: cq.withOwner.Clone(),
|
||||
// clone intermediate query.
|
||||
|
||||
@@ -278,6 +278,7 @@ func (uq *UserQuery) Clone() *UserQuery {
|
||||
limit: uq.limit,
|
||||
offset: uq.offset,
|
||||
order: append([]OrderFunc{}, uq.order...),
|
||||
inters: append([]Interceptor{}, uq.inters...),
|
||||
predicates: append([]predicate.User{}, uq.predicates...),
|
||||
withCard: uq.withCard.Clone(),
|
||||
// clone intermediate query.
|
||||
|
||||
Reference in New Issue
Block a user