In production I've got this error :
The class 'Generic\UserBundle\Entity\Session' was not found in the chain configured namespaces
When checking my entities with php app/console doctrine:mapping:info
this is what I get
dev:
Found 18 mapped entities:
[OK] App\AdminBundle\Entity\ArticleOpen
[OK] App\AdminBundle\Entity\ModuleQuote
[OK] App\AdminBundle\Entity\Comment
[OK] App\AdminBundle\Entity\ModuleVideo
[OK] App\AdminBundle\Entity\ModuleGallery
[OK] App\AdminBundle\Entity\ArticlesUsers
[OK] App\AdminBundle\Entity\ModuleText
[OK] App\AdminBundle\Entity\User
[OK] App\AdminBundle\Entity\Story
[OK] App\AdminBundle\Entity\ModuleTitle
[OK] App\AdminBundle\Entity\ModuleGalleryPicture
[OK] App\AdminBundle\Entity\ModulePicture
[OK] App\AdminBundle\Entity\Category
[OK] App\AdminBundle\Entity\Group
[OK] App\AdminBundle\Entity\Article
[OK] Generic\UserBundle\Entity\Session
[OK] FOS\UserBundle\Model\User
[OK] FOS\UserBundle\Model\Group
prod
Found 17 mapped entities:
[OK] App\AdminBundle\Entity\ModulePicture
[OK] App\AdminBundle\Entity\Group
[OK] App\AdminBundle\Entity\ArticlesUsers
[OK] App\AdminBundle\Entity\Story
[OK] App\AdminBundle\Entity\ModuleTitle
[OK] App\AdminBundle\Entity\Category
[OK] App\AdminBundle\Entity\ArticleOpen
[OK] App\AdminBundle\Entity\ModuleQuote
[OK] App\AdminBundle\Entity\Article
[OK] App\AdminBundle\Entity\ModuleGalleryPicture
[OK] App\AdminBundle\Entity\Comment
[OK] App\AdminBundle\Entity\ModuleGallery
[OK] App\AdminBundle\Entity\ModuleVideo
[OK] App\AdminBundle\Entity\ModuleText
[OK] App\AdminBundle\Entity\User
[OK] FOS\UserBundle\Model\User
[OK] FOS\UserBundle\Model\Group
As you can see the entity Generic\UserBundle\Entity\Session
is missing in production. Ive checked the bundle is registered in appKernel and not under the 'dev' section. I've also check the path for typo having case sensitive content in some files/folder but everything seems fine.
Another fact worth mentioning is, I've manually copied this bundle from another project I didn't used the console to generate it so I might have forgot something. The missing entity is the only one on that bundle so it is possible that the whole bundle is wrong not just this entity (but at the same time how can it work in dev mode ?)
Thank you