public function getName() { $choice = $this->getChoiceGroup(); if ($choice == null) { return parent::getName(); } else { return str_replace('.', '_', $choice->getComponentPath()); } }