I need to retrieve two collections from the same repository, but when pushgin criterias they stay applied to the repository for the next query :
$elements = $this->elementRepository->pushCriteria(new ElementByElementTypeCriteria(1)->paginate(7);
// the Criteria stay applied for the next call to paginate() on the same repo
$elements_type = $this->elementRepository->pushCriteria(new ElementByElementTypeCriteria(6))->paginate(3);
I need to retrieve two collections from the same repository, but when pushgin criterias they stay applied to the repository for the next query :
What is the good approach to do that ?