Page 1 of 1

problem with EntityManager on my production server

Posted: Thu Jul 18, 2024 5:23 pm
by mansour

Hi,
I used "EntityManager" in a custom file for a table named as "pages". My code works on my local development server (xampp/windows 11).
After uploading to my production server I see an error message thet says "/home/myuser/domains/SITE.COM/public_html/vendor/doctrine/persistence/src/Persistence/Mapping/MappingException.php(80): Class 'PHPMaker2024\TELEHEALTH\Entity\page' does not exist".

code of the custom page:

$em = EntityManager();
$article = $em->getRepository(Entity\page::class)->find(Route("pid"));
CurrentPageTitle($article->getPageTitle());

What's the problem and how to fix it?

Thanks


Re: problem with EntityManager on my production server

Posted: Thu Jul 18, 2024 6:29 pm
by arbei

Class name are in pascal case, you may check the files under src\Entity, I believe it is Entity\Page.


Re: problem with EntityManager on my production server

Posted: Thu Jul 18, 2024 8:20 pm
by mansour

Thank you, Solved.