Staging #1663
1 changed files with 1 additions and 1 deletions
|
|
@ -485,7 +485,7 @@ class VehicleController extends Controller
|
|||
// get row data
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$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))
|
||||
throw $this->createNotFoundException('The item does not exist');
|
||||
|
|
|
|||
Loading…
Reference in a new issue