This could be simplified to ```$this->assignObjectValuesToUi($this->getObject(), $names);```