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