diff --git a/src/CodeGeneration/Generator/Field/EntityFieldSetter.php b/src/CodeGeneration/Generator/Field/EntityFieldSetter.php
index <HASH>..<HASH> 100644
--- a/src/CodeGeneration/Generator/Field/EntityFieldSetter.php
+++ b/src/CodeGeneration/Generator/Field/EntityFieldSetter.php
@@ -112,6 +112,7 @@ class EntityFieldSetter extends AbstractGenerator
             $this->updater->updateFakerProviderArray($this->pathToProjectRoot, $fieldFqn, $entityFqn);
         }
         $this->dataTransferObjectCreator->setNewObjectFqnFromEntityFqn($entityFqn)
+                                        ->setProjectRootDirectory($this->pathToProjectRoot)
                                         ->setProjectRootNamespace($this->projectRootNamespace)
                                         ->createTargetFileObject()
                                         ->write();
fixed issue with field setter not respecting the work dir