Fix for errors found during testing. #277
This commit is contained in:
parent
0adffd92d7
commit
bf86a46082
1 changed files with 2 additions and 1 deletions
|
|
@ -2191,7 +2191,8 @@ class APIController extends Controller
|
|||
|
||||
protected function findCustomerByNumber($number)
|
||||
{
|
||||
$customers = $this->em->getRepository(Customer::class)->findBy(['phone_mobile' => $number]);
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$customers = $em->getRepository(Customer::class)->findBy(['phone_mobile' => $number]);
|
||||
|
||||
// find the customer with the most number of cars
|
||||
$car_count = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue