ORM: Unrecognized field: Entity\O3PmActorUser::$user

Hi, I have this setup in PHPMaker2025:

a view:
‘o3pmActorUser’ with a field ‘user’

the generated model (O3pmActorUser.php):

class O3pmActorUser extends DbTable {
   ...
   public DbField $user;
   ...
} 

In another table ‘o3pmUseCase’ in the ListOptions Rendering event I have this code:

   $em = EntityManager();
   $rep = $em->getRepository(Entity\O3pmActorUser::class);
   $actor = $rep->findBy(['user' => CurrentUserID()]);

When I try to list ‘o3pmUseCase’, I get the exception telling that the field $user is not recognized?!

What could be the problem here? How to solve?

Thank you for your help

NP: I already tried changing uppercase/lowercase. Didn’t help

I run the on PHP 8.3.20 and there it says that the class O3pmActorUser (o3pmActorUser) does not exist:

Class ‘PHPMaker2025\rgs\Entity\o3pmActorUser’ does not exist

How is it possible to make the class known to Doctrine?

You may check the folder src\Entity and see the actual entity class name. You can also check Object Properties, see Database, Table and Field Variable Names. Make sure you use correct lettercase. The error said “o3pmActorUser” but your class is “O3pmActorUser”.

Thank you, that helped.