This commit is contained in:
Korina Cordero 2023-02-02 06:57:07 +00:00
parent cbf5d12d96
commit 72fc6ee9b0

View file

@ -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');