diff --git a/src/SectionField/Generator/EntityGenerator.php b/src/SectionField/Generator/EntityGenerator.php
index <HASH>..<HASH> 100644
--- a/src/SectionField/Generator/EntityGenerator.php
+++ b/src/SectionField/Generator/EntityGenerator.php
@@ -224,6 +224,8 @@ class EntityGenerator extends Generator implements GeneratorInterface
             }
         }
 
+        unset($info);
+
         usort($this->prePersistInfo, function($a, $b) {
             return
                 $a['config'][self::GENERATE_FOR]['prePersistOrder'] <=>
Fix issue where referenced variable causes issues

<URL>