Does $transport contain something after: $transport = $this->TravelplanTransportRepository->findAll()->toArray(); My guess would be no, but please check. I can't make out which is the right line from the line number of the error message and the code posted. Cheers, Christian