{"action":"opened","issue":{"url":"https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/issues/283","labels_url":"https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/issues/283/comments","events_url":"https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/issues/283/events","html_url":"https://github.com/stof/StofDoctrineExtensionsBundle/issues/283","id":83505944,"number":283,"title":"RuntimeException: Listener \"SoftDeleteableListener\" was not added to the EventManager! message only in vendor bundle, not in actual project","user":{"login":"BentCoder","id":8837278,"avatar_url":"https://avatars.githubusercontent.com/u/8837278?v=3","gravatar_id":"","url":"https://api.github.com/users/BentCoder","html_url":"https://github.com/BentCoder","followers_url":"https://api.github.com/users/BentCoder/followers","following_url":"https://api.github.com/users/BentCoder/following{/other_user}","gists_url":"https://api.github.com/users/BentCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/BentCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BentCoder/subscriptions","organizations_url":"https://api.github.com/users/BentCoder/orgs","repos_url":"https://api.github.com/users/BentCoder/repos","events_url":"https://api.github.com/users/BentCoder/events{/privacy}","received_events_url":"https://api.github.com/users/BentCoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-01T13:46:01Z","updated_at":"2015-06-01T13:46:01Z","closed_at":null,"body":"Soft delete works fine in root/parent project but when I run phpunit tests in `product-bundle` which is vendor directory, I get this famous `RuntimeException: Listener \"SoftDeleteableListener\" was not added to the EventManager!` error message. Am I missing anything below?\r\n\r\nNote: The reason why I'm declaring it in vendor bundle is because, it is being used in two more projects so trying to avoid duplication this config entries.\r\n\r\n\r\n***composer.json of root/parent project:***\r\n\r\n```\r\n\"stof/doctrine-extensions-bundle\": \"1.2.*@dev\",\r\n```\r\n\r\n**AppKernel.php of root/parent project:**\r\n\r\n```\r\nnew Stof\\DoctrineExtensionsBundle\\StofDoctrineExtensionsBundle()\r\n```\r\n\r\n\r\n**Config settings of child bundle:**\r\n\r\n```\r\n# def/vendor/my/product-bundle/My/Bundle/ProductBundle/DependencyInjection/MyProductExtension.php\r\n\r\nclass MyProductExtension extends Extension implements PrependExtensionInterface\r\n{\r\n    public function prepend(ContainerBuilder $container)\r\n    {\r\n        $configs = $container->getExtensionConfig($this->getAlias());\r\n        $configuration = new Configuration();\r\n        $config = $this->processConfiguration($configuration, $configs);\r\n\r\n        $this->prependDoctrineExtension($container, $config);\r\n        $this->prependStofDoctrineExtension($container);\r\n    }\r\n\r\n    protected function prependStofDoctrineExtension(ContainerBuilder $container)\r\n    {\r\n        $config = [\r\n            'orm' => [\r\n                'abc' => [\r\n                    'softdeleteable' => true,\r\n                ],\r\n            ],\r\n        ];\r\n\r\n        $container->prependExtensionConfig('stof_doctrine_extensions', $config);\r\n    }\r\n\r\n    public function prependDoctrineExtension(ContainerBuilder $container, array $config)\r\n    {\r\n        $doctrine = [\r\n            'orm' => [\r\n                'entity_managers' => [\r\n                    'abc' => [\r\n                        'mappings' => [\r\n                            'MyProductBundle' => [\r\n                                'dir' => 'Entity/ABC',\r\n                                'type' => 'annotation',\r\n                                'prefix' => 'My\\Bundle\\ProductBundle\\Entity',\r\n                                'is_bundle' => true,\r\n                            ],\r\n                        ],\r\n                        'filters' => [\r\n                            'softdeleteable' => [\r\n                                'class' => 'Gedmo\\SoftDeleteable\\Filter\\SoftDeleteableFilter',\r\n                                'enabled' => true,\r\n                            ],\r\n                        ],\r\n                    ],\r\n                    'def' => [\r\n                        'mappings' => [\r\n                            'MyProductBundle' => [\r\n                                'dir' => 'Entity/DEF',\r\n                                'type' => 'annotation',\r\n                                'prefix' => 'My\\Bundle\\ProductBundle\\Entity',\r\n                                'is_bundle' => true,\r\n                            ],\r\n                        ],\r\n                    ],\r\n                ],\r\n            ],\r\n        ];\r\n\r\n        if ($config['use_cache']) {\r\n            $doctrine['orm']['entity_managers']['mws']['result_cache_driver'] = [\r\n                'type' => 'memcached',\r\n                'host' => $config['memcache_server'],\r\n                'port' => $config['memcache_port'],\r\n                'instance_class' => 'Memcached',\r\n            ];\r\n        }\r\n\r\n        $container->prependExtensionConfig('doctrine', $doctrine);\r\n    }\r\n```\r\n\r\n\r\n\r\n\r\n"}}