private function enableFilters(EntityManagerInterface $entityManager)
    {
        if (empty($this->enabledFilters)) {
            return;
        }

        $filterCollection = $entityManager->getFilters();
        foreach ($this->enabledFilters as $filter) {
            $filterObject = $filterCollection->enable($filter);
            if ($filterObject === null) {
                continue;
            }

            $this->setFilterParameters($filter, $filterObject);
        }
    }