From 1acdd6b209c4f22cef9b8be0b6add6100920fcc0 Mon Sep 17 00:00:00 2001 From: Babak Alizadeh Date: Fri, 10 Nov 2023 07:25:20 -0800 Subject: [PATCH] bug fix in person edit and get info --- hesabixCore/src/Controller/PersonsController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hesabixCore/src/Controller/PersonsController.php b/hesabixCore/src/Controller/PersonsController.php index 5629a5d..a6eee57 100644 --- a/hesabixCore/src/Controller/PersonsController.php +++ b/hesabixCore/src/Controller/PersonsController.php @@ -21,6 +21,9 @@ use Symfony\Component\Serializer\SerializerInterface; class PersonsController extends AbstractController { + /** + * @throws \ReflectionException + */ #[Route('/api/person/info/{code}', name: 'app_persons_info')] public function app_persons_info($code,Provider $provider,Request $request,Access $access,Log $log,EntityManagerInterface $entityManager): JsonResponse { @@ -31,7 +34,7 @@ class PersonsController extends AbstractController 'bid'=>$acc['bid'], 'code'=>$code ]); - $response = $provider->ArrayEntity2Array($person,0); + $response = $provider->Entity2Array($person,0); $rows = $entityManager->getRepository(HesabdariRow::class)->findBy([ 'person'=>$person ]);