Symfony 2.5.5 & FOSUserBundle: the class ... was not found in the chain configured namespaces Symfony 2.5.5 & FOSUserBundle: the class ... was not found in the chain configured namespaces symfony symfony

Symfony 2.5.5 & FOSUserBundle: the class ... was not found in the chain configured namespaces


First you need to configure psr-4 autoload in your composer.js, for example

"autoload": {    "psr-4": {      "Meiblorn\\CoreBundle\\": "src/Meiblorn/CoreBundle/"    }},

Then call composer dumpautoload.

Secondly, I believe Doctrine expects the entities to live in a folder Entity/, so try to move you model: src/Meiblorn/CoreBundle/Framework/Domain/User.php to src/Meiblorn/CoreBundle/Entity/User.php or How do I change symfony 2 doctrine mapper to use my custom directory instead of my Entity Directory under the bundle