|
|
@ -379,7 +379,7 @@ class LanguageBehavior extends Behavior |
|
|
|
if (is_array($this->relativeField)) { |
|
|
|
if (is_array($this->relativeField)) { |
|
|
|
$condition = []; |
|
|
|
$condition = []; |
|
|
|
foreach ($this->relativeField as $field) { |
|
|
|
foreach ($this->relativeField as $field) { |
|
|
|
$condition[$field] = $this->owner{$field}; |
|
|
|
$condition[$field] = $this->owner[$field]; |
|
|
|
} |
|
|
|
} |
|
|
|
return $this->virtualClassName::find() |
|
|
|
return $this->virtualClassName::find() |
|
|
|
->andWhere($condition) |
|
|
|
->andWhere($condition) |
|
|
|