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())