eav-manager
eav-manager copied to clipboard
Bug on pagination and filters
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....
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...