Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Fix translation not being properly removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeboer committed Jun 29, 2022
1 parent 2e75666 commit a429a09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TranslatableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public function setTranslations(iterable $translations): self

if ($existingTranslation !== null && $existingTranslation !== $translation) {
$existingTranslation->setTranslatable(null);
$this->translations->removeElement($existingTranslation);
}

// Set translatable.
Expand Down

0 comments on commit a429a09

Please sign in to comment.