You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If $this->owner->{$this->translationRelation} returns related objects, they are already linked. When you create new translations, you have to link them yourself.
The text was updated successfully, but these errors were encountered:
I have a model with translatable behaviour and
When I do:
$mainModel->translations has duplicate entries
This code loops over existing translations and calls link() which causes duplicate related objects:
If $this->owner->{$this->translationRelation} returns related objects, they are already linked. When you create new translations, you have to link them yourself.
The text was updated successfully, but these errors were encountered: