Browse Source

PHP8 support

master
Error202 4 years ago
parent
commit
88ce1d6d2c
  1. 2
      core/behaviors/LanguageBehavior.php

2
core/behaviors/LanguageBehavior.php

@ -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)

Loading…
Cancel
Save