Fix bug with missing entity manager for rider api calls #132
This commit is contained in:
parent
70af6935ef
commit
2be0abb716
1 changed files with 3 additions and 0 deletions
|
|
@ -445,6 +445,7 @@ class RAPIController extends Controller
|
||||||
|
|
||||||
public function acceptJobOrder(Request $req)
|
public function acceptJobOrder(Request $req)
|
||||||
{
|
{
|
||||||
|
$em = $this->getDoctrine()->getManager();
|
||||||
$required_params = ['jo_id'];
|
$required_params = ['jo_id'];
|
||||||
$res = $this->checkJO($req, $required_params, $jo);
|
$res = $this->checkJO($req, $required_params, $jo);
|
||||||
if ($res->isError())
|
if ($res->isError())
|
||||||
|
|
@ -465,6 +466,7 @@ class RAPIController extends Controller
|
||||||
|
|
||||||
public function cancelJobOrder(Request $req)
|
public function cancelJobOrder(Request $req)
|
||||||
{
|
{
|
||||||
|
$em = $this->getDoctrine()->getManager();
|
||||||
$required_params = ['jo_id'];
|
$required_params = ['jo_id'];
|
||||||
$res = $this->checkJO($req, $required_params, $jo);
|
$res = $this->checkJO($req, $required_params, $jo);
|
||||||
if ($res->isError())
|
if ($res->isError())
|
||||||
|
|
@ -485,6 +487,7 @@ class RAPIController extends Controller
|
||||||
|
|
||||||
public function arrive(Request $req)
|
public function arrive(Request $req)
|
||||||
{
|
{
|
||||||
|
$em = $this->getDoctrine()->getManager();
|
||||||
$required_params = ['jo_id'];
|
$required_params = ['jo_id'];
|
||||||
$res = $this->checkJO($req, $required_params, $jo);
|
$res = $this->checkJO($req, $required_params, $jo);
|
||||||
if ($res->isError())
|
if ($res->isError())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue