Hi, I am using phpmaker 2024, need to use Entity classes in userfn.php files using api class, following method/code is working fine but showing empty result. Kindly help me out this that how we can use Entity classes properly in custom code/API's. my code is as below
$em = EntityManager( );
$customer = $em->getRepository(Entity\Customer::class)->find("1"); //Customer.php exists in src/Entity folder.
Make ensure that i am using this under Api_Action($app) method using API calls. API is working but showing empty results (empty array). any help or support will highly be appreciated.
Thank you.