public function applyDefaultValues() { parent::applyDefaultValues(); $this->setType(QuizPlugin::getCoreValue('UserEntryType', QuizUserEntryType::QUIZ)); }