problem with EntityManager on my production server

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mansour
User
Posts: 319

problem with EntityManager on my production server

Post 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


arbei
User
Posts: 9719

Post by arbei »

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


mansour
User
Posts: 319

Post by mansour »

Thank you, Solved.


Post Reply