correct cascade delete options

This commit is contained in:
Anika Raemer 2025-10-04 18:01:46 +02:00
parent e33dfdb845
commit b1b714f44e
19 changed files with 207 additions and 52 deletions

View file

@ -29,4 +29,17 @@ export class RecipeIngredientDtoEntityMapper extends AbstractDtoEntityMapper<Rec
return entity;
}
createNewEntity(): RecipeIngredientEntity {
return new RecipeIngredientEntity();
}
mergeDtoIntoEntity(dto: RecipeIngredientDto, entity: RecipeIngredientEntity): RecipeIngredientEntity {
entity.name = dto.name;
entity.amount = dto.amount;
entity.unit = dto.unit;
entity.subtext = dto.subtext;
entity.sortOrder = dto.sortOrder;
return entity;
}
}