|
|
@ -376,9 +376,6 @@ class LanguageBehavior extends Behavior |
|
|
|
public function findTranslation($language = null) |
|
|
|
public function findTranslation($language = null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$language = $language ?: $this->defaultLanguage; |
|
|
|
$language = $language ?: $this->defaultLanguage; |
|
|
|
|
|
|
|
|
|
|
|
//$class = call_user_func(array($this->virtualClassName, 'getInstance')); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (is_array($this->relativeField)) { |
|
|
|
if (is_array($this->relativeField)) { |
|
|
|
$condition = []; |
|
|
|
$condition = []; |
|
|
|
foreach ($this->relativeField as $field) { |
|
|
|
foreach ($this->relativeField as $field) { |
|
|
|