Details
Description
Hi,
I have these classes: https://gist.github.com/1085518/58b5424bc0ab5af1ae65421fe832e7a1b45533cf (read the comments to see the stracktrace)
If I try:
$entity = $em->find('Usuario', $id);
$entity->getPessoaFisica()->getId();
I got this error: Class does not exist.
This is looking weird because, analyzing the stacktrace, the ORM loads the proxy through the BasicEntityPersister instead of JoinedSubclassPersister.
I've been discussed about this on: http://groups.google.com/group/doctrine-user/browse_thread/thread/190dc2c4b768ae13#
Regards,
Daniel Lima
It seems your mappings are wrong, the @JoinColumn maps to a column named COD_PERFIL_USUARIO, but that is not the ID of the Joined Entity base class.