PUGX / PUGXMultiUserBundle

An extension for FOSUserBundle to handle users of different types. Compatible with Doctrine ORM.
163 stars 96 forks source link

Entity class 'UserOne' used in the discriminator map of class 'UserBundle\Entity\User' does not exist. #65

Open indi32 opened 10 years ago

indi32 commented 10 years ago

Thanks in advance for this excellent Bundle and all your efforts. Anyway, I'm still unable to make it work:

After filling form in .../register/user-one all I get is: "Entity class 'UserOne' used in the discriminator map of class 'UserBundle\Entity\User' does not exist."

I've checked class names, tables, etc from your tutorial but I'm unable to find why the discriminator is not receiving the right class name. By using the profiler, I've checked that mappings for FOS\UserBundle\Model\User and UserBundle\Entity\User are valid... but the discriminator complains from it...

Many thanks in advance if there's any expert that can turn me in the right direction.

indi32 commented 10 years ago

Well it seems that including the whole path in User.php solved it all

So I'm not sure if this should be included in the docs. Many thanks