[FLOW3-general] Pagination viewhelper requires Persistence\QueryResult

Peter Beernink p.beernink at drecomm.nl
Wed Mar 23 22:20:15 CET 2011


Hi,

After updating my code to make correct use of the Doctrine
implementation, I wanted to display a listing of all elements retrieved
from a repository using the pagination widget.
To accomplish this, I assign the return value of a repository->findAll()
to the objects attribute of the <f:widget.paginate>
However, this results in an exception:

PaginateViewHelper_Original::render() must be an instance of F3\FLOW3
\Persistence\QueryResult, instance of F3\FLOW3\Persistence\Doctrine
\QueryResult given

Is this because the viewhelper has to be rewritten in order to work with
Doctrine, or do I have to convert the result myself somehow?

Greets,
Peter



More information about the FLOW3-general mailing list