diff --git a/src/Generator/Writer/CmsModelWriter.php b/src/Generator/Writer/CmsModelWriter.php
index <HASH>..<HASH> 100644
--- a/src/Generator/Writer/CmsModelWriter.php
+++ b/src/Generator/Writer/CmsModelWriter.php
@@ -653,8 +653,8 @@ class CmsModelWriter extends AbstractCodeWriter
                           . "\n";
             }
 
-            return $replace;
         }
+        return $replace;
     }
cmsmodelwriter bugfix for relations, return misplaced