Skip to content

Commit 704ce6e

Browse files
committed
fix builder state
1 parent f16838d commit 704ce6e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Model/ListCriteriaBuilder.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function setViewId(int $viewId): self
7171

7272
public function create(): ListCriteriaInterface
7373
{
74-
return new ListCriteria(
74+
$listCriteria = new ListCriteria(
7575
$this->data['filters'] ?? [],
7676
$this->data['fields'] ?? [],
7777
$this->data['include'] ?? [],
@@ -81,5 +81,8 @@ public function create(): ListCriteriaInterface
8181
$this->data['sortOrder'] ?? null,
8282
$this->data['viewId'] ?? null,
8383
);
84+
$this->data = [];
85+
86+
return $listCriteria;
8487
}
8588
}

0 commit comments

Comments
 (0)