src/Entity/DataTransferObjects/DtoFactory.php
public function createDtoRelatedToDto(
        DataTransferObjectInterface $owningDto,
        string $relatedEntityFqn
    ): DataTransferObjectInterface {
        $this->resetCreationTransaction();
        return $this->createDtoRelatedToEntityDataObject($owningDto, $relatedEntityFqn);
    }
public function createDtoRelatedToDto(
        DataTransferObjectInterface $owningDto,
        string $relatedEntityFqn
    ): DataTransferObjectInterface {
        $this->resetCreationTransaction();
        return $this->createDtoRelatedToEntityDataObject($owningDto, $relatedEntityFqn);
    }
public function createDtoRelatedToDto ( DataTransferObjectInterface $ owningDto , string $ relatedEntityFqn ) : DataTransferObjectInterface { $ this -> resetCreationTransaction ( ) ; return $ this -> createDtoRelatedToEntityDataObject ( $ owningDto , $ relatedEntityFqn ) ; }
Create a DTO with a preset relation to the owning Entity DTO and all other items filled with new objects

@param DataTransferObjectInterface $owningDto
@param string                      $relatedEntityFqn

@return DataTransferObjectInterface
@throws \EdmondsCommerce\DoctrineStaticMeta\Exception\DoctrineStaticMetaException
@throws \ReflectionException
Create a DTO with a preset relation to the owning Entity DTO and all other items filled with new objects