private function setupDoctrineListener(array $config, ContainerBuilder $container)
    {
        $autoIndexing = $container->getParameter('solr.auto_index');

        if ($autoIndexing == false) {
            return;
        }

        if ($this->isODMConfigured($container)) {
            $container->getDefinition('solr.document.odm.subscriber')->addTag('doctrine_mongodb.odm.event_subscriber');
        }

        if ($this->isOrmConfigured($container)) {
            $container->getDefinition('solr.document.orm.subscriber')->addTag('doctrine.event_subscriber');
        }
    }
private function setupDoctrineListener(array $config, ContainerBuilder $container)
    {
        $autoIndexing = $container->getParameter('solr.auto_index');

        if ($autoIndexing == false) {
            return;
        }

        if ($this->isODMConfigured($container)) {
            $container->getDefinition('solr.document.odm.subscriber')->addTag('doctrine_mongodb.odm.event_subscriber');
        }

        if ($this->isOrmConfigured($container)) {
            $container->getDefinition('solr.document.orm.subscriber')->addTag('doctrine.event_subscriber');
        }
    }
private function setupDoctrineListener ( array $ config , ContainerBuilder $ container ) { $ autoIndexing = $ container -> getParameter ( 'solr.auto_index' ) ; if ( $ autoIndexing == false ) { return ; } if ( $ this -> isODMConfigured ( $ container ) ) { $ container -> getDefinition ( 'solr.document.odm.subscriber' ) -> addTag ( 'doctrine_mongodb.odm.event_subscriber' ) ; } if ( $ this -> isOrmConfigured ( $ container ) ) { $ container -> getDefinition ( 'solr.document.orm.subscriber' ) -> addTag ( 'doctrine.event_subscriber' ) ; } }
doctrine_orm and doctrine_mongoDB can't be used together. mongo_db wins when it is configured.

listener-methods expecting different types of events

@param array            $config
@param ContainerBuilder $container
doctrine_orm and doctrine_mongoDB can t be used together . mongo_db wins when it is configured .