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);
        }
    }
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);
        }
    }
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 ) ; } }
Enables filters for a given entity manager
Enables filters for a given entity manager