I'm trying to integrate CCDN Forum Bundle 2 in my Symfony 2.4.2 project. I'm configurring using steps from manual but getting "The class 'DDD\PrintplusonlineBundle\Entity\User' was not found in the chain configured namespaces CCDNForum\ForumBundle\Entity, FOS\UserBundle\Model" error when trying to dump sql.
I see that this problem was solved here but as I understand the configuration changed on new version.
My Doctrine ORM config:
Thank you in advance!
Hmm is this happening when working on the console doing something like:
I am wondering if FOSUserBundle is fully configured, i would recommend disabling the forum bundle first and ensuring that FOSUserBundle is properly configured before you attempt to configure the forum bundle, as i suspect this is where the issue lies.
The other issue, could be this line "DDD\PrintplusonlineBundle\Entity\User", where plusonline is, are they meant to be all lower case, or is there some camel case involved?
It could be that the class exists but the namespace is incorrect. I think its best that you setup FOSUserBundle and your other bundles first to eliminate a misconfiguration in the Forum Bundle.
Let me know how it goes.
$ php app/console doctrine:schema:update --dump-sql
Thank you for reply!
Yes, this error appears when I try to run doctrine update console function. The site is actually running for a while and FOSUserBundle is doing OK. I think if there weren't any problems with it before, it is configured properly.
The name of bundle in config file is spelled correctly.
Take a look at this topic here, i think it might help. Someone else had an issue and they just needed to change the mapping type to annotation if thats what they were using to override some stuff.
Hope this helps.
Thank you! It is a really working solution. Here is a config that I've added: