[TYPO3-mvc] Strange warning "You should never see it"
Dennis Ahrens
dennis.ahrens at googlemail.com
Wed Jan 19 12:32:37 CET 2011
Dawid Pacholczyk wrote:
> But where to look. As I said I didn`t change anything. The code looks
> like this
>
> /**
> * Displays all Records
> *
> * @return string The rendered list view
> */
> public function listAction() {
> $records = $this->recordRepository->findAll();
> $this->view->assign('records', $records);
> }
Maybe a ViewHelper handles $records as an array - but i do not really
believe in this...
give this a try:
$records = $this->recordRepository->findAll()->toArray();
More information about the TYPO3-project-typo3v4mvc
mailing list