[TYPO3-mvc] QueryResult question

Henjo Hoeksma me at henjohoeksma.nl
Wed Jan 19 12:46:31 CET 2011


Hi list,

I have been out of the edge on the progress in extbase/fluid 
development and have been stuck in version 1.2 for a while now.
Since 1.3 some great changes have come by I see (DI, Widgets)... Now I 
am trying to get the paginator widget to work with an existing 
extension and I get to see it on the first page. As soon as I click a 
next page number I get the error:

"Argument 1 passed to 
Tx_Fluid_ViewHelpers_Widget_PaginateViewHelper::render() must implement 
interface Tx_Extbase_Persistence_QueryResultInterface, array given".

I tried altering my query by extending the execute() with ->getQuery() 
and also toArray() but without succes.
Below my findAll function:

    /*
     * $param integer $limit
     *
     */
    public function findAll(){
		
	$orderings = array('date' => 
Tx_Extbase_Persistence_QueryInterface::ORDER_DESCENDING);
	$query = $this->createQuery();
	$post = $query->setOrderings($orderings)
		->execute()->toArray();
	return $post;
    }

What am I missing here? Should stay more on top of the development 
progresses... ;-)

Thanks in advance for your response!

Henjo



More information about the TYPO3-project-typo3v4mvc mailing list