Fatal Error
Call to a member function get() on null search?
Source file
File: .../module/Orders/src/Controller/ListController.php:61
51:
52: public function viewAction()
53: {
54: $id = $this->params()->fromQuery('id');
55:
56: if (!$id) {
57: throw new \UnexpectedValueException('No order id given. Please provide the order id in the "id" parameter.');
58: }
59:
60: $services = $this->serviceLocator;
61: $repositories = $services->get('repositories');
62: $repository = $repositories->get('Orders');
63: $order = $repository->find($id);
64:
65: if (!$order) {
The Detail View get the following error