links-ads / ermes-backend-netcore

0 stars 0 forks source link

Update report bug #151

Closed links-ads-admin closed 11 months ago

links-ads-admin commented 12 months ago

Original report by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


When trying to update a report, the server replies with 500:

"System.InvalidOperationException: The association between entity types 'Report' and 'ReportValidation' has been severed but the relationship is either marked as 'Required' or is implicitly required because the foreign key is not nullable. If the dependent/child entity should be deleted when a required relationship is severed, then setup the relationship to use cascade deletes. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values.", " at Ermes.EntityFrameworkCore.ErmesDbContext.SaveChangesAsync(CancellationToken cancellationToken) in /src/src/Ermes.EntityFrameworkCore/EntityFrameworkCore/ErmesDbContext.cs:line 367",

links-ads-admin commented 12 months ago

Original comment by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


fix update report function ref #151

links-ads-admin commented 11 months ago

Original changes by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).