src/CodeGeneration/Generator/RelationsGenerator.php
public function generateRelationCodeForEntity(string $entityFqn): void
    {
        $invokable = new GenerateRelationCodeForEntity(
            $entityFqn,
            $this->pathToProjectRoot,
            $this->projectRootNamespace,
            $this->srcSubFolderName,
            $this->namespaceHelper,
            $this->pathHelper,
            $this->findAndReplaceHelper
        );
        $invokable($this->getRelativePathRelationsGenerator());
    }
public function generateRelationCodeForEntity(string $entityFqn): void
    {
        $invokable = new GenerateRelationCodeForEntity(
            $entityFqn,
            $this->pathToProjectRoot,
            $this->projectRootNamespace,
            $this->srcSubFolderName,
            $this->namespaceHelper,
            $this->pathHelper,
            $this->findAndReplaceHelper
        );
        $invokable($this->getRelativePathRelationsGenerator());
    }
public function generateRelationCodeForEntity ( string $ entityFqn ) : void { $ invokable = new GenerateRelationCodeForEntity ( $ entityFqn , $ this -> pathToProjectRoot , $ this -> projectRootNamespace , $ this -> srcSubFolderName , $ this -> namespaceHelper , $ this -> pathHelper , $ this -> findAndReplaceHelper ) ; $ invokable ( $ this -> getRelativePathRelationsGenerator ( ) ) ; }
Generate the relation traits for specified Entity

This works by copying the template traits folder over and then updating the file contents, name and path

@param string $entityFqn Fully Qualified Name of Entity

@throws DoctrineStaticMetaException
@SuppressWarnings(PHPMD.StaticAccess)
Generate the relation traits for specified Entity