Skip to content

Commit c9bf8a9

Browse files
author
Alexander Stoimenov
authored
Fix translations relation
1 parent 6607fb1 commit c9bf8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/i18nModelTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ trait i18nModelTrait
1616
*/
1717
public function translations()
1818
{
19-
return $this->hasMany($this->translator);
19+
return $this->hasMany($this->translator, $this->translatorField, $this->localeField);
2020
}
2121

2222
/**

0 commit comments

Comments
 (0)