I’m learning Symfony2 and I use Doctrine2 as ORM.
Everything went fine except one error. In fact this error is blocking me because she happens on every page and in the CLI too.
The error is the following:
ErrorException: Warning: class_parents(): Class BumpMe\UserBundle\Entity\User does not exist and could not be loaded in /home/gp2mv3/www/bumpme/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php line 223
The User Entity was in the UserBundle but i moved it (the files) in another bundle (AppBundle). I renamed the file and the namespaces in it.
After that i removed the UserBundle without errors.
And now, after a lot of cli commands, I’ve it…
How can i solve this issue ?
Where does this error come from ?
Thanks.
I found the error !
I forgot one declaration in
app/config/config.yml.If you’ve the same error, reread every file and you’ll probably find an old unedited statement.