Bundle/CoreBundle/VictoireCoreBundle.php
public function boot()
    {
        //Add entity proxy driver into the DriverChain
        $driverChain = $this->container->get('doctrine.orm.entity_manager')->getConfiguration()->getMetadataDriverImpl();

        $proxyDriver = $this->container->get('victoire_core.entity_proxy.cache_driver');
        $driverChain->addDriver($proxyDriver, 'Victoire');
    }
public function boot()
    {
        //Add entity proxy driver into the DriverChain
        $driverChain = $this->container->get('doctrine.orm.entity_manager')->getConfiguration()->getMetadataDriverImpl();

        $proxyDriver = $this->container->get('victoire_core.entity_proxy.cache_driver');
        $driverChain->addDriver($proxyDriver, 'Victoire');
    }
public function boot ( ) { //Add entity proxy driver into the DriverChain $ driverChain = $ this -> container -> get ( 'doctrine.orm.entity_manager' ) -> getConfiguration ( ) -> getMetadataDriverImpl ( ) ; $ proxyDriver = $ this -> container -> get ( 'victoire_core.entity_proxy.cache_driver' ) ; $ driverChain -> addDriver ( $ proxyDriver , 'Victoire' ) ; }
Boot the bundle.
Boot the bundle .