we actively fix the guid so it is not asserting but ensuring

This commit is contained in:
thrillfall 2021-08-27 12:38:23 +02:00
parent ff4798f6da
commit efa9280b91
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class EpisodeActionSaver
$episodeActionEntity->setId($episodeActionEntityToUpdate->getId());
$this->assertGuidDoesNotGetNulledWithOldData($episodeActionEntityToUpdate, $episodeActionEntity);
$this->ensureGuidDoesNotGetNulledWithOldData($episodeActionEntityToUpdate, $episodeActionEntity);
return $this->episodeActionWriter->update($episodeActionEntity);
}
@ -108,7 +108,7 @@ class EpisodeActionSaver
);
}
private function assertGuidDoesNotGetNulledWithOldData(EpisodeActionEntity $episodeActionEntityToUpdate, EpisodeActionEntity $episodeActionEntity): void
private function ensureGuidDoesNotGetNulledWithOldData(EpisodeActionEntity $episodeActionEntityToUpdate, EpisodeActionEntity $episodeActionEntity): void
{
$existingGuid = $episodeActionEntityToUpdate->getGuid();
if ($existingGuid !== null && $episodeActionEntity->getGuid() == null) {