I have a problem with Doctrine Bundle. When i try entry to webpage i have error:
The DoctrineBundle is not registered in your application.
It's strange because in config/bundles.php i has:
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
FOS\RestBundle\FOSRestBundle::class => ['all' => true],
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
];
How to add Doctrine Bundle avalible for application? OR maybe is something with doctrine/orm? Thanks for any help.
EDIT
When i dump $this in controller, in services.kernel.bundles i have:
["DoctrineBundle"]=>
object(Doctrine\Bundle\DoctrineBundle\DoctrineBundle)#73 (6) {
["autoloader":"Doctrine\Bundle\DoctrineBundle\DoctrineBundle":private]=>
NULL
["name":protected]=>
string(14) "DoctrineBundle"
["extension":protected]=>
NULL
["path":protected]=>
NULL
["namespace":"Symfony\Component\HttpKernel\Bundle\Bundle":private]=>
string(30) "Doctrine\Bundle\DoctrineBundle"
["container":protected]=>
*RECURSION*
}
}