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.
1 parent 250f9b3 commit fb2354cCopy full SHA for fb2354c
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->translations()->getForeignKeyName(), $this->getKey());
185
$this->translations->add($translation);
186
187
return $translation;
0 commit comments