src/CodeGeneration/Generator/Relations/GenerateRelationCodeForEntity.php
private function renameDirectories(): void
    {
        //update directory names and update file created paths accordingly
        foreach ($this->dirsToRename as $dirPath) {
            $updateDirPath = $this->pathHelper->renamePathBasenameSingularOrPlural(
                $dirPath,
                $this->singularNamespacedName,
                $this->pluralNamespacedName
            );
            foreach ($this->filesCreated as $k => $filePath) {
                $this->filesCreated[$k] = \str_replace($dirPath, $updateDirPath, $filePath);
            }
        }
    }
private function renameDirectories(): void
    {
        //update directory names and update file created paths accordingly
        foreach ($this->dirsToRename as $dirPath) {
            $updateDirPath = $this->pathHelper->renamePathBasenameSingularOrPlural(
                $dirPath,
                $this->singularNamespacedName,
                $this->pluralNamespacedName
            );
            foreach ($this->filesCreated as $k => $filePath) {
                $this->filesCreated[$k] = \str_replace($dirPath, $updateDirPath, $filePath);
            }
        }
    }
private function renameDirectories ( ) : void { //update directory names and update file created paths accordingly foreach ( $ this -> dirsToRename as $ dirPath ) { $ updateDirPath = $ this -> pathHelper -> renamePathBasenameSingularOrPlural ( $ dirPath , $ this -> singularNamespacedName , $ this -> pluralNamespacedName ) ; foreach ( $ this -> filesCreated as $ k => $ filePath ) { $ this -> filesCreated [ $ k ] = \ str_replace ( $ dirPath , $ updateDirPath , $ filePath ) ; } } }
Loop through all the directories to rename and then rename them

@throws DoctrineStaticMetaException
Loop through all the directories to rename and then rename them