src/CodeGeneration/Generator/Relations/GenerateRelationCodeForEntity.php
private function processPaths(\Generator $relativePathRelationsGenerator): void
    {
        foreach ($relativePathRelationsGenerator as $path => $fileInfo) {
            $fullPath = $this->destinationDirectory . "/$path";
            $path     = \realpath($fullPath);
            if (false === $path) {
                throw new \RuntimeException("path $fullPath does not exist");
            }
            if ($fileInfo->isDir()) {
                $this->dirsToRename[] = $path;
                continue;
            }
            $this->performFindAndReplaceInFile($path);
            $this->filesCreated[] = $path;
        }
    }
private function processPaths(\Generator $relativePathRelationsGenerator): void
    {
        foreach ($relativePathRelationsGenerator as $path => $fileInfo) {
            $fullPath = $this->destinationDirectory . "/$path";
            $path     = \realpath($fullPath);
            if (false === $path) {
                throw new \RuntimeException("path $fullPath does not exist");
            }
            if ($fileInfo->isDir()) {
                $this->dirsToRename[] = $path;
                continue;
            }
            $this->performFindAndReplaceInFile($path);
            $this->filesCreated[] = $path;
        }
    }
private function processPaths ( \ Generator $ relativePathRelationsGenerator ) : void { foreach ( $ relativePathRelationsGenerator as $ path => $ fileInfo ) { $ fullPath = $ this -> destinationDirectory . "/$path" ; $ path = \ realpath ( $ fullPath ) ; if ( false === $ path ) { throw new \ RuntimeException ( "path $fullPath does not exist" ) ; } if ( $ fileInfo -> isDir ( ) ) { $ this -> dirsToRename [ ] = $ path ; continue ; } $ this -> performFindAndReplaceInFile ( $ path ) ; $ this -> filesCreated [ ] = $ path ; } }
Loop through the iterator paths and process each item

@param \Generator $relativePathRelationsGenerator
Loop through the iterator paths and process each item