protected function initTranslationClass()
    {
        if (!class_exists($this->translationClassName)) {
            $namespace = substr($this->translationClassName, 0, strrpos($this->translationClassName, '\\'));
            $translationClassName = $this->getShortClassName($this->translationClassName);

            eval('
            namespace ' . $namespace . ';
            use yii\db\ActiveRecord;
            class ' . $translationClassName . ' extends ActiveRecord
            {
                public static function tableName()
                {
                    return \'' . $this->tableName . '\';
                }
            }');
        }
    }