From 2be0abb716f9484921034b01f6e10ec18a486058 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Mon, 28 May 2018 20:16:26 +0800 Subject: [PATCH] Fix bug with missing entity manager for rider api calls #132 --- src/Controller/RAPIController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Controller/RAPIController.php b/src/Controller/RAPIController.php index 2949b577..4973d5b2 100644 --- a/src/Controller/RAPIController.php +++ b/src/Controller/RAPIController.php @@ -445,6 +445,7 @@ class RAPIController extends Controller public function acceptJobOrder(Request $req) { + $em = $this->getDoctrine()->getManager(); $required_params = ['jo_id']; $res = $this->checkJO($req, $required_params, $jo); if ($res->isError()) @@ -465,6 +466,7 @@ class RAPIController extends Controller public function cancelJobOrder(Request $req) { + $em = $this->getDoctrine()->getManager(); $required_params = ['jo_id']; $res = $this->checkJO($req, $required_params, $jo); if ($res->isError()) @@ -485,6 +487,7 @@ class RAPIController extends Controller public function arrive(Request $req) { + $em = $this->getDoctrine()->getManager(); $required_params = ['jo_id']; $res = $this->checkJO($req, $required_params, $jo); if ($res->isError())