Fix error. #733
This commit is contained in:
parent
cbf5d12d96
commit
72fc6ee9b0
1 changed files with 1 additions and 1 deletions
|
|
@ -485,7 +485,7 @@ class VehicleController extends Controller
|
||||||
// get row data
|
// get row data
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$vobj = $em->getRepository(Vehicle::class)->find($req->request->get('vehicle_id'));
|
$vobj = $em->getRepository(Vehicle::class)->find($req->request->get('vehicle_id'));
|
||||||
$all_batts = $em->getRepository(Battery::class)->findBy('flag_active' => true);
|
$all_batts = $em->getRepository(Battery::class)->findBy(['flag_active' => true]);
|
||||||
|
|
||||||
if (empty($vobj))
|
if (empty($vobj))
|
||||||
throw $this->createNotFoundException('The item does not exist');
|
throw $this->createNotFoundException('The item does not exist');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue