diff --git a/DependencyInjection/Compiler/TransformerPass.php b/DependencyInjection/Compiler/TransformerPass.php
index <HASH>..<HASH> 100644
--- a/DependencyInjection/Compiler/TransformerPass.php
+++ b/DependencyInjection/Compiler/TransformerPass.php
@@ -19,7 +19,7 @@ class TransformerPass implements CompilerPassInterface
      */
     public function process(ContainerBuilder $container)
     {
-        if (!$container->hasDefinition('fos_elastica.elastica_to_model_transformer.collection.prototype')) {
+        if (!$container->hasDefinition('fos_elastica.elastica_to_model_transformer.collection')) {
             return;
         }
 
@@ -44,4 +44,4 @@ class TransformerPass implements CompilerPassInterface
             $index->replaceArgument(0, $indexTransformers);
         }
     }
-}
\ No newline at end of file
+}
Fix definition decorators (closes #<I>)