public function beforeValidate() { foreach ($this->attributes as $attribute) { $this->setLangAttribute($this->getAttributeName($attribute, $this->defaultLanguage), $this->getLangAttribute($attribute)); } }