private function isTranslationActive($model)
    {
        if (!$model) {
            return false;
        }
        if (is_array($this->requiredAttributes) && !empty($this->requiredAttributes)) {
            foreach ($this->requiredAttributes as $attribute) {
                if ($model->{$attribute} && !empty($model->{$attribute})) {
                    return true;
                }
            }
        } else {
            return true;
        }
        return false;
    }
private function isTranslationActive($model)
    {
        if (!$model) {
            return false;
        }
        if (is_array($this->requiredAttributes) && !empty($this->requiredAttributes)) {
            foreach ($this->requiredAttributes as $attribute) {
                if ($model->{$attribute} && !empty($model->{$attribute})) {
                    return true;
                }
            }
        } else {
            return true;
        }
        return false;
    }
private function isTranslationActive ( $ model ) { if ( ! $ model ) { return false ; } if ( is_array ( $ this -> requiredAttributes ) && ! empty ( $ this -> requiredAttributes ) ) { foreach ( $ this -> requiredAttributes as $ attribute ) { if ( $ model -> { $ attribute } && ! empty ( $ model -> { $ attribute } ) ) { return true ; } } } else { return true ; } return false ; }
Translation is active or just empty model?
@param $model
@return bool
Translation is active or just empty model?