protected function copyFrom(TScaffoldBase $obj) { $this->_record = $obj->_record; $this->setRecordClass($obj->getRecordClass()); $this->setEnableDefaultStyle($obj->getEnableDefaultStyle()); }