private function storeFilterValues(array $data)
    {
        $this->filterValues = $data;

        $session = new Session();

        foreach($this->filters as $datagridFilter) {
            if ($datagridFilter->getType() instanceof DatagridFilterTypeEntity) {
                if (!empty($this->filterValues[$datagridFilter->getName()])) {
                    $this->filterValues[$datagridFilter->getName()] = $this->filterValues[$datagridFilter->getName()]->getId();
                }
            }
        }

        $session->set($this->getStorageNamespace(), $this->filterValues);
    }
private function storeFilterValues(array $data)
    {
        $this->filterValues = $data;

        $session = new Session();

        foreach($this->filters as $datagridFilter) {
            if ($datagridFilter->getType() instanceof DatagridFilterTypeEntity) {
                if (!empty($this->filterValues[$datagridFilter->getName()])) {
                    $this->filterValues[$datagridFilter->getName()] = $this->filterValues[$datagridFilter->getName()]->getId();
                }
            }
        }

        $session->set($this->getStorageNamespace(), $this->filterValues);
    }
private function storeFilterValues ( array $ data ) { $ this -> filterValues = $ data ; $ session = new Session ( ) ; foreach ( $ this -> filters as $ datagridFilter ) { if ( $ datagridFilter -> getType ( ) instanceof DatagridFilterTypeEntity ) { if ( ! empty ( $ this -> filterValues [ $ datagridFilter -> getName ( ) ] ) ) { $ this -> filterValues [ $ datagridFilter -> getName ( ) ] = $ this -> filterValues [ $ datagridFilter -> getName ( ) ] -> getId ( ) ; } } } $ session -> set ( $ this -> getStorageNamespace ( ) , $ this -> filterValues ) ; }
Store values for filters so user can change page and keep his filters
Values are stored per admin
Store values for filters so user can change page and keep his filters Values are stored per admin