[TYPO3-mvc] Cannot object of type QueryResult to string
TSniper
masmoudi_moha at yahoo.fr
Thu Feb 2 16:21:15 CET 2017
Hi List !
Today i have this error message : Cannot cast object of type "TYPO3\CMS\Extbase\Persistence\Generic\QueryResult" to string.
This is the code on the LocationController:
public function listAction() {
$locations = $this->locationRepository->findByArguments($this->params);
$this->view->assign('locations', $locations);
}
And this is the code in the view :
<n:widget.paginate objects="{locations}" as="paginatedlocation" configuration="{settings.list.paginate}">
<f:for each="{paginatedlocation}" as="location">
/// content here*
</f:for>
</n:widget.paginate>
I'm missing something here?
Thanks for any help
More information about the TYPO3-project-typo3v4mvc
mailing list