eav-manager icon indicating copy to clipboard operation
eav-manager copied to clipboard

Bug on pagination and filters

Open johnkrovitch opened this issue 5 years ago • 1 comments

When using a filter, the returned results are not correct and the pagination is broken. For instance, the pagination says 25 results are returned and 2 pages are available, but only 3 results are displayed on each page...

And as it is EAV model, it is not possible to debug in database....

johnkrovitch avatar Jan 06 '20 11:01 johnkrovitch

It look like the EAV adapter does not work. If replace the lines :

 return new Pagerfanta(
            EAVAdapter::create(
                $this->dataLoader,
                $queryBuilder,
                $this->configuration->getOption('loader_depth', 2)
            )
        );

by

return new Pagerfanta(new DoctrineORMAdapter($queryBuilder));

it works. I think that working parts of Doctrine should not be rewrited...

johnkrovitch avatar Jan 06 '20 13:01 johnkrovitch