public function __set($name, $value) { $translation = $this->getTranslation(); $translation->setAttribute($name, $value); }