Commit 6dda98865337a6734979752e42bb678ab9d7298b
1 parent
f36f2e82
model speaker
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
common/models/speaker/Speaker.php
@@ -85,7 +85,7 @@ | @@ -85,7 +85,7 @@ | ||
85 | */ | 85 | */ |
86 | public function getLanguage() | 86 | public function getLanguage() |
87 | { | 87 | { |
88 | - return $this->hasMany(SpeakerLang::className(), [ 'speaker_id' => 'id' ]) | 88 | + return $this->hasOne(SpeakerLang::className(), [ 'speaker_id' => 'id' ]) |
89 | ->where( | 89 | ->where( |
90 | [ | 90 | [ |
91 | 'language_id' => Language::getCurrent()->id, | 91 | 'language_id' => Language::getCurrent()->id, |