We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 250f9b3 + a52698e commit 979d18dCopy full SHA for 979d18d
src/Translatable/Translatable.php
@@ -181,6 +181,7 @@ public function getNewTranslation(string $locale): Model
181
/** @var Model $translation */
182
$translation = new $modelName();
183
$translation->setAttribute($this->getLocaleKey(), $locale);
184
+ $translation->setAttribute($this->getTranslationRelationKey(), $this->getKey());
185
$this->translations->add($translation);
186
187
return $translation;
0 commit comments