diff --git a/JMSSerializerBundle.php b/JMSSerializerBundle.php index cfd50e96..f665b3af 100644 --- a/JMSSerializerBundle.php +++ b/JMSSerializerBundle.php @@ -45,7 +45,7 @@ function(ContainerBuilder $container, Definition $def) { $builder->addCompilerPass(new RegisterEventListenersAndSubscribersPass(), PassConfig::TYPE_BEFORE_REMOVING); $builder->addCompilerPass(new CustomHandlersPass(), PassConfig::TYPE_BEFORE_REMOVING); - $builder->addCompilerPass(new DoctrinePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION); + $builder->addCompilerPass(new DoctrinePass(), PassConfig::TYPE_BEFORE_REMOVING); } private function getServiceMapPass($tagName, $keyAttributeName, $callable)