diff --git a/core/behaviors/LanguageBehavior.php b/core/behaviors/LanguageBehavior.php index 7774870..da02795 100644 --- a/core/behaviors/LanguageBehavior.php +++ b/core/behaviors/LanguageBehavior.php @@ -379,7 +379,7 @@ class LanguageBehavior extends Behavior if (is_array($this->relativeField)) { $condition = []; foreach ($this->relativeField as $field) { - $condition[$field] = $this->owner{$field}; + $condition[$field] = $this->owner[$field]; } return $this->virtualClassName::find() ->andWhere($condition)