EntitySuffix should just append a suffix to generated entities
Actual Behavior
When specifying an entity suffix, like "Dto" for example, the subsequent generated Dto for this entity are broken.
Indeed, for exemple, the createDto looks like this
import {ApiExtraModels} from '@nestjs/swagger'
import {ConnectSiteDto} from '../../site/dto/connect-site.dto'
import {CreateUserSettingDto} from '../../userSetting/dto/create-userSetting.dto'
export class CreateUserSiteRelationInputDto {
connect: ConnectSiteDto;
}
export class CreateUserUserSettingRelationInputDto {
create: CreateUserSettingDto;
}
@ApiExtraModels(ConnectSiteDtoDto,CreateUserSiteRelationInputDtoDto,CreateUserSettingDtoDto,CreateUserUserSettingRelationInputDtoDto)
export class CreateUserDto {
username: string;
email: string;
password: string;
created_at?: Date;
site: CreateUserSiteRelationInputDtoDto;
User_Setting?: CreateUserUserSettingRelationInputDtoDto;
}
As you can see, the relations dto name are messed up adding the Dto suffix and entity sufix concatenated at the end.
The actual ConnectSiteDto looks like this, for example :
export class ConnectSiteDto {
id?: number;
name?: string;
}
they do have the expected name
Expected Behavior
EntitySuffix should just append a suffix to generated entities
Actual Behavior
When specifying an entity suffix, like "Dto" for example, the subsequent generated Dto for this entity are broken. Indeed, for exemple, the createDto looks like this
As you can see, the relations dto name are messed up adding the Dto suffix and entity sufix concatenated at the end.
The actual ConnectSiteDto looks like this, for example :
Steps to Reproduce the Problem
Specifications
Prisma file