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

@param EntityInterface $owningEntity
@param string          $relatedEntityFqn

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