I\'m trying to setup symfony with doctrine, configuring doctrine is new for me.
I try to retrieve a entity from the database by using the following code in my controller
Your bundle isn't declare in the AppKernel file or your doctrine mapping isn't reconized.
You should have in your AppKernel :
public function registerBundles()
{
$bundles = array(
...
new AppBundle\AppBundle(),
);
....
return $bundles;
}
And by default in your config.yml :
orm:
auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true